Implemented by the editor to allow for ui interactions.
Closes the editor.
A promise that resolves when the editor is closed.
Implemented by the editor to allow for ui interactions.