mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 09:13:59 +02:00
typo
This commit is contained in:
@@ -826,7 +826,7 @@ class State extends new Record(DEFAULTS) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a `mark` to the characters in the current selection.
|
||||
* Remove a `mark` from the characters in the current selection.
|
||||
*
|
||||
* @param {Mark} mark
|
||||
* @return {State} state
|
||||
@@ -836,7 +836,7 @@ class State extends new Record(DEFAULTS) {
|
||||
let state = this
|
||||
let { cursorMarks, document, selection } = state
|
||||
|
||||
// If the selection is collapsed, remove the mark to the cursor instead.
|
||||
// If the selection is collapsed, remove the mark from the cursor instead.
|
||||
if (selection.isCollapsed) {
|
||||
if (typeof mark == 'string') mark = new Mark({ type: mark })
|
||||
cursorMarks = cursorMarks.remove(mark)
|
||||
|
Reference in New Issue
Block a user