diff --git a/.changeset/seven-foxes-wonder.md b/.changeset/seven-foxes-wonder.md deleted file mode 100644 index 90cebc90..00000000 --- a/.changeset/seven-foxes-wonder.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"slate-angular": minor ---- - -1. In toDOMPoint, when the anchor or focus is on the block-card element and the selection is in the expanded state, the DOM selection is positioned on the cursor before and after, solving the problem that the beforeinput event cannot be triggered when the cursor is a block-card or void element (when the first element of the editor or table cell is a void element, Ctrl + A selects all) (contenteditable='false' is added to the void element) - -2. Fix the problem of positioning the cursor before and after the block-card in toSlatePoint - -1. toDOMPoint 中当 anchor 或者 focus 在 block-card 元素上并且选区是 expanded 状态时,将 DOM 的 selection 定位到前后光标的上,解决光标所在的元素是 block-card 和 void 元素(编辑器或者表格单元格的第一个元素是 void 元素时,Ctrl + A 全选)时无法触发 beforeinput 事件(void 元素上增加了 contenteditable='false') - -2. 修复 toSlatePoint 中对 block-card 前后光标定位的问题 diff --git a/.changeset/three-snails-invite.md b/.changeset/three-snails-invite.md deleted file mode 100644 index 1f7ea0fe..00000000 --- a/.changeset/three-snails-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": minor ---- - -bump slate into 0.103.0 diff --git a/packages/CHANGELOG.md b/packages/CHANGELOG.md index afdca070..5fab975b 100644 --- a/packages/CHANGELOG.md +++ b/packages/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 17.3.0 + +### Minor Changes + +- [#273](https://github.com/worktile/slate-angular/pull/273) [`c65fea2`](https://github.com/worktile/slate-angular/commit/c65fea27c15e83a78c76fc3d4bf3d45fa03b2845) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - 1. In toDOMPoint, when the anchor or focus is on the block-card element and the selection is in the expanded state, the DOM selection is positioned on the cursor before and after, solving the problem that the beforeinput event cannot be triggered when the cursor is a block-card or void element (when the first element of the editor or table cell is a void element, Ctrl + A selects all) (contenteditable='false' is added to the void element) + + 2. Fix the problem of positioning the cursor before and after the block-card in toSlatePoint + 1. toDOMPoint 中当 anchor 或者 focus 在 block-card 元素上并且选区是 expanded 状态时,将 DOM 的 selection 定位到前后光标的上,解决光标所在的元素是 block-card 和 void 元素(编辑器或者表格单元格的第一个元素是 void 元素时,Ctrl + A 全选)时无法触发 beforeinput 事件(void 元素上增加了 contenteditable='false') + 1. 修复 toSlatePoint 中对 block-card 前后光标定位的问题 + +- [#274](https://github.com/worktile/slate-angular/pull/274) [`2b7598e`](https://github.com/worktile/slate-angular/commit/2b7598e1bdde127e3b76ccb962abd988557efc66) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - bump slate into 0.103.0 + ## 17.2.2 ### Patch Changes diff --git a/packages/package.json b/packages/package.json index 53e3e7bc..dd600037 100644 --- a/packages/package.json +++ b/packages/package.json @@ -1,6 +1,6 @@ { "name": "slate-angular", - "version": "17.2.2", + "version": "17.3.0", "description": "Angular view layer for Slate", "author": "pubuzhixing ", "homepage": "https://github.com/worktile/slate-angular#readme",