Rubric Editor API Methods
attach()
Attaches the editor UI instance to the provided DOM element.
You would want to use this method when you want to attach the editor to a specific element in your application, such as a div or any other HTML element.
Examples
editor.attach(document.querySelector('#editor'));
Arguments
-
element object
The DOM element (HTMLElement) to attach the editor to.
Return value
Type Promise
Resolves when the editor is attached.