mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +02:00
docs: clarifies not setting editor values directly & plugin order (#4571)
* Updates "Saving to a Database" example to distinguish actual content changes. * Update docs/walkthroughs/06-saving-to-a-database.md * Update docs/walkthroughs/06-saving-to-a-database.md * Update docs/walkthroughs/06-saving-to-a-database.md * Runs prettier * docs: clarifies not setting editor values directly & plugin order * Changes reccommended order of withReact & withHistory, to match current knowleged Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
@@ -33,10 +33,12 @@ It is slightly more complex than the others, because it contains all of the top-
|
||||
The `children` property contains the document tree of nodes that make up the editor's content.
|
||||
|
||||
The `selection` property contains the user's current selection, if any.
|
||||
Don't set it directly; use [Transforms.select](04-transforms#selection-transforms)
|
||||
|
||||
The `operations` property contains all of the operations that have been applied since the last "change" was flushed. \(Since Slate batches operations up into ticks of the event loop.\)
|
||||
|
||||
The `marks` property stores formatting to be applied when the editor inserts text. If `marks` is `null`, the formatting will be taken from the current selection.
|
||||
Don't set it directly; use `Editor.addMark` and `Editor.removeMark`.
|
||||
|
||||
## Overriding Behaviors
|
||||
|
||||
|
Reference in New Issue
Block a user