ElementApi
interface
Interface describing an editor that replaced a DOM element (was "initialized on an element").
Such an editor should provide a method to update the replaced element with the current data.
Properties
sourceElement : undefined | HTMLElementreadonlymodule:core/editor/utils/elementapimixin~ElementApi#sourceElementThe element on which the editor has been initialized.
Methods
updateSourceElement( [ data ] ) → voidmodule:core/editor/utils/elementapimixin~ElementApi#updateSourceElementUpdates the editor source element's content with the data if the
updateSourceElementOnDestroyconfiguration option is set totrue.Parameters
[ data ] : stringData that the editor source element should be updated with.
Returns
void