OptionaldispatchDeprecated* single-transaction version of
dispatchTransactions. Will force transactions to be dispatched
one at a time when used.
OptionaldispatchOverride the way transactions are
dispatched for this editor view.
Your implementation, if provided, should probably call the
view's update method.
OptionaldocThe initial document. Defaults to an empty document. Can be
provided either as a plain string (which will be split into
lines according to the value of the lineSeparator
facet), or an instance of
the Text class (which is what the state will use
to represent the document).
OptionalextensionsExtension(s) to associate with this state.
OptionalparentWhen given, the editor is immediately appended to the given
element on creation. (Otherwise, you'll have to place the view's
dom element in the document yourself.)
OptionalrootIf the view is going to be mounted in a shadow root or document
other than the one held by the global variable document (the
default), you should pass it here. If you provide parent, but
not this option, the editor will automatically look up a root
from the parent.
OptionalscrollPass an effect created with
EditorView.scrollIntoView or
EditorView.scrollSnapshot
here to set an initial scroll position.
OptionalselectionThe starting selection. Defaults to a cursor at the very start of the document.
OptionalstateThe view's initial state. If not given, a new state is created
by passing this configuration object to
EditorState.create, using its
doc, selection, and extensions field (if provided).
The type of object given to the
EditorViewconstructor.