A completely customizable framework for building rich text editors. (Currently in beta.)
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
9ae37287
Thanks @tithanayut! - Fix deleteBackward behavior for Thai script where deleting N character(s) backward should deletePublished by github-actions[bot] over 2 years ago
fe13a8f9
Thanks @alexandercampbell! - Add new Slate.Scrubber interface to allow scrubbing end user data from exceptionPublished by github-actions[bot] over 2 years ago
fe13a8f9
Thanks @alexandercampbell! - Add new Slate.Scrubber interface to allow scrubbing end user data from exceptionPublished by github-actions[bot] over 2 years ago
92c5730a
Thanks @jasonphillips! - Revert #4876 & #4910 to restore original decorations behaviorPublished by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
cb8a5515
Thanks @BitPhinix! - Add ReactEditor.isComposing(editor)
to get the current isComposing
statePublished by github-actions[bot] over 2 years ago
6afa9f6a
Thanks @BitPhinix! - Unset isComposing on keydown with isCompsing falsePublished by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
a4536e2a
Thanks @BitPhinix! - Fix triple click handling in nested blocksPublished by github-actions[bot] over 2 years ago
c1e3fbaa
Thanks @BitPhinix! - Don't treat events with non-selection target range as nativePublished by github-actions[bot] over 2 years ago
9ce0a08c
Thanks @steve-codaio! - Fix positions iteration when starting inside an inline void nodePublished by github-actions[bot] over 2 years ago
5b51e87d
Thanks @BitPhinix! - Fix double insert in anchor element decorationsPublished by github-actions[bot] over 2 years ago
9957c214
Thanks @BitPhinix! - Prevent native insert at the end of anchor elementsPublished by github-actions[bot] over 2 years ago
1ff6e690
Thanks @e1himself! - Export createText
creator from slate-hyperscript
packagePublished by github-actions[bot] over 2 years ago
076ab9a6
Thanks @Auralytical! - Fix firefox three digit version check486c385b
Thanks @BitPhinix! - Fix crash when tripple clicking editor rootPublished by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
#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
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
#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.
#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
Published by github-actions[bot] over 2 years ago
#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.
43ca2b56
Thanks @zhugexinxin! - feat: add merge to setNodes and test