From f23227b325bc7156457d253fb250cbc0ecbfe91f Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Mon, 22 Mar 2021 00:02:16 -0700 Subject: [PATCH] Improve documentation for editor.marks --- docs/concepts/06-editor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/06-editor.md b/docs/concepts/06-editor.md index bcd81e6f2..166b86460 100644 --- a/docs/concepts/06-editor.md +++ b/docs/concepts/06-editor.md @@ -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 `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