1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 06:31:28 +02:00

Improve documentation for editor.marks

This commit is contained in:
Sunny Hirai
2021-03-22 00:02:16 -07:00
parent cd13b4c7de
commit f23227b325

View File

@@ -38,7 +38,7 @@ The `selection` property contains the user's current selection, if any.
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 `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 that is attached to the cursor, and that will be applied to the text that is inserted next. The `marks` property stores formatting that is attached to the cursor when it is not the same as the formatting at the current selection. For example, when your cursor is in a plain text mode and you set a `bold` mark but you haven't typed anything yet. If `marks` is `null`, it means the formatting will be taken from the current selection.
## Overriding Behaviors ## Overriding Behaviors