Releases: ianstormtaylor/slate
[email protected]
Patch Changes
- #4952
9ce0a08c
Thanks @steve-codaio! - Fix positions iteration when starting inside an inline void node
[email protected]
Patch Changes
- #4951
5b51e87d
Thanks @BitPhinix! - Fix double insert in anchor element decorations
[email protected]
Patch Changes
- #4948
9957c214
Thanks @BitPhinix! - Prevent native insert at the end of anchor elements
[email protected]
[email protected]
Minor Changes
- #4926
076ab9a6
Thanks @Auralytical! - Fix firefox three digit version check
Patch Changes
- #4944
486c385b
Thanks @BitPhinix! - Fix crash when tripple clicking editor root
[email protected]
Patch Changes
- #4932
1ff6e690
Thanks @e1himself! - ExportcreateText
creator fromslate-hyperscript
package
[email protected]
[email protected]
Patch Changes
-
#4923
08d5a12c
Thanks @BitPhinix! - Call keyDown handler while composing -
#4920
f6b7ca1f
Thanks @adri1wald! - fix useFocused hook in react >= 17 -
#4914
aff67312
Thanks @sennpang! - Fixed Triple click selection and copy&paste in read-only mode -
#4919
7de7cdcf
Thanks @BitPhinix! - Restore user selection after applying beforeinput with target range -
#4922
9892cf0f
Thanks @BitPhinix! - Make Slate component onChange optional
[email protected]
Minor Changes
-
#4873
20acca4b
Thanks @bryanph! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now.If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead.
Patch Changes
- #4912
43ca2b56
Thanks @zhugexinxin! - feat: add merge to setNodes and test
[email protected]
Minor Changes
-
#4873
20acca4b
Thanks @bryanph! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now.If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead.
Patch Changes
-
#4901
5ef346fe
Thanks @bryanph! - Fixes a bug where nodes remounted on split_node and merge_node -
#4885
07669dca
Thanks @ryanmitts! - toSlatePoint should not consider a selection within a void node if the void node isn't in the editor itself.Prior to this fix, a nested Slate editor inside a void node in a parent editor would not allow you to start typing text in a blank editor state correctly. After the first character insertion, the selection would jump back to the start of the nested editor.
-
#4910
2a8d86f1
Thanks @jasonphillips! - Fix decorations applied across nested elements