RootEditableOptions
interface
Additional options for the created editable element.
Properties
element : string | HTMLElement | ViewRootElementDefinition | undefinedmodule:editor-multi-root/multirooteditor~RootEditableOptions#elementA description of the editable root element to create, or an existing DOM element to use.
Accepted forms:
- A tag name string (e.g.
'h1'). - A
ViewRootElementDefinitionobject. - An existing
HTMLElement. The element is used as-is —createEditable()returns the same element instead of creating a new one, so callers do not need to append it to the DOM.
When omitted, a default
<div>is created.Note: an
HTMLElementvalue is local to this client. It cannot be replicated through real-time collaboration, so it is not persisted with the root. Other clients callingcreateEditable()for the same root receive a fresh element built from the canonical descriptor (or the default<div>), unless they pass their ownHTMLElementas well.- A tag name string (e.g.
label : string | undefinedmodule:editor-multi-root/multirooteditor~RootEditableOptions#labelThe accessible label text describing the editable to the assistive technologies.
placeholder : string | undefinedmodule:editor-multi-root/multirooteditor~RootEditableOptions#placeholderPlaceholder for the editable element. If not set, placeholder value from the editor configuration will be used (if it was provided).