mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 20:51:20 +02:00
fix selection.marks preservation from #2181
This commit is contained in:
@@ -677,10 +677,6 @@ function AfterPlugin() {
|
||||
if (next) range = range.moveFocusTo(next.key, 0)
|
||||
}
|
||||
|
||||
// Preserve active marks from the current selection.
|
||||
// They will be cleared by `change.select` if the selection actually moved.
|
||||
range = range.set('marks', value.selection.marks)
|
||||
|
||||
let selection = document.createSelection(range)
|
||||
selection = selection.setIsFocused(true)
|
||||
|
||||
|
Reference in New Issue
Block a user