mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
Consistent insert* methods (#5415)
* feat: add reviewpad.yml file * Update reviewpad.yml * ✨ options to `Editor.insert*` * 📝 options to `Editor.insert*` * ✨ getDefaultInsertLocation * ✨ getDefaultInsertLocation * ✨ getDefaultInsertLocation * 📝 consistent selection * Create tasty-lizards-remain.md * Update tasty-lizards-remain.md --------- Co-authored-by: reviewpad[bot] <104832597+reviewpad[bot]@users.noreply.github.com> Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
6
.changeset/tasty-lizards-remain.md
Normal file
6
.changeset/tasty-lizards-remain.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
`Editor.insertFragment`, `Editor.insertNode`, `Editor.insertText` now accept `options`.
|
||||
For all insert methods, the default location is now the editor selection if `at` is not defined, or the end of document if `editor.selection` is not defined.
|
Reference in New Issue
Block a user