mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 19:52:32 +02:00
This commit is contained in:
@@ -111,7 +111,7 @@ Editor.insertNodes(editor, [element], { at: path })
|
||||
Editor.splitNodes(editor, { at: point })
|
||||
|
||||
// Add a mark to all the text in a range.
|
||||
Editor.addMarks(editor, [mark], { at: range })
|
||||
Editor.addMarks(editor, mark, { at: range })
|
||||
```
|
||||
|
||||
The editor-specific helpers are the ones you'll use most often when working with Slate editors, so it pays to become very familiar with them.
|
||||
|
Reference in New Issue
Block a user