Skip to main content

SKIP_DOM_SELECTION_TAG

const

Indicates that the update should skip updating the DOM selection This is useful when you want to make updates without changing the selection or focus. Note: this tag has no effect on the initial editor state setup (e.g. an `editorState` supplied via `createEditor` or `$initialEditorState`). If you need the editor to not scroll to or focus the initial selection on first mount, call `$setSelection(null)` inside your initial state setup function instead.

const SKIP_DOM_SELECTION_TAG: "skip-dom-selection"

Import

import { SKIP_DOM_SELECTION_TAG } from '@modular/sdk/editor';