mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-01 11:12:42 +02:00
* fix: supplement of (fix: Prevent ReactEditor.toDOMRange crash in setDomSelection #5741) * Update packages/slate-dom/src/plugin/with-dom.ts * Update packages/slate-dom/src/plugin/with-dom.ts * Create gold-tomatoes-grab.md * Update packages/slate-dom/src/plugin/with-dom.ts * Update packages/slate-dom/src/plugin/with-dom.ts --------- Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
@@ -210,7 +210,12 @@ export const withDOM = <T extends BaseEditor>(
|
||||
case 'remove_node':
|
||||
case 'merge_node':
|
||||
case 'move_node':
|
||||
case 'split_node': {
|
||||
case 'split_node':
|
||||
case 'insert_text':
|
||||
case 'remove_text':
|
||||
case 'set_selection': {
|
||||
// FIXME: Rename to something like IS_DOM_EDITOR_DESYNCED
|
||||
// to better reflect reality, see #5792
|
||||
IS_NODE_MAP_DIRTY.set(e, true)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user