Protected_Attached ElementInternals which provides form handling functionality.
Protected_The primary input (if any). Used to determine what element should receive focus when an associated label is clicked on.
Protected_The underlying value of the element.
StaticformDeclare that this custom element provides form element functionality.
StaticobservedAttributes requiring change notifications
StatictagAn AbortSignal that can be passed to event listeners registered in subclasses. The signal will ensure that the listener is removed when the element is disconnected from the DOM. Not available in the constructor.
Is this element disabled?
Is this field editable? The field can be neither disabled nor readonly.
The form this element belongs to.
The input element name.
Whether the editor is currently open. Always true for non-toggled editors.
The value of the input element.
InternalApply key attributes on the containing custom HTML element to input elements contained within it.
Called when the element is moved into a new Document.
Initialize the custom element, constructing its HTML.
Actions to take when the custom element is removed from the document.
Determine if the editor has unsaved changes.
Handle saving the editor content. Store new parsed HTML into the _value attribute of the element. If the editor is toggled, also deactivate editing mode.
Protected_ProtectedConfigure ProseMirror editor plugins.
Protected_ProtectedA method provided for subclasses to perform tear-down workflows as an alternative to overriding disconnectedCallback.
Protected_ProtectedSpecial handling when the custom element is clicked. This should be implemented to transfer focus to an appropriate internal element.
Protected_StaticcreateCreate a HTMLProseMirrorElement using provided configuration data.
A custom HTML element responsible displaying a ProseMirror rich text editor.
Fires
open Fired when an editor is initialized in the DOM and ready.
Fires
close Fired when a toggled editor is deactivated.
Fires
save Fired when the editor is saved.
Fires
plugins Fired when an editor's plugins are being configured.