Evaluation Options Editor API Methods
detach()
Removes the editor UI from the DOM without tearing down the instance.
You would want to use this method so that you can hide the editor and attach it again later, for example, when your application navigates to another view.
The instance keeps its current options and its registered event listeners.
Note To permanently tear down the instance and remove its event listeners, use the destroy() method instead.
Examples
// Remove the editor from the page and keep the instance
await editor.detach();
Arguments
None.
Return value
Type Promise
Resolves when the editor is detached.