{hero}

destroy()

Since: Editor 1.6

Destroy the Editor instance.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

If you are working with a single page application, or otherwise creating and destroying Editor instances on a common based in a page, it is important to be able to keep tight control of the page's memory use. Once you no longer require an element it should be destroyed, allowing the memory to be used for something else. Editor instances are no different and this method provides that ability.

It will clean up any events added by Editor, fields and DOM elements.

Please note that if you have external references to the Editor instance, such as with Buttons, you will need to remove those references as well, otherwise the browser's garbage collector will not be able to free the memory used by Editor.