1
0
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:
Ziad Beyens
2023-05-07 00:41:42 +02:00
committed by GitHub
parent 48c18b5368
commit 01f0210bcc
12 changed files with 92 additions and 60 deletions

View 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.