1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-10 09:13:59 +02:00
This commit is contained in:
Ian Storm Taylor
2016-07-14 09:27:41 -07:00
parent 1f76b337a0
commit 21cde81ee7

View File

@@ -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)