attach - Methods - Rubric Editor API

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.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.