MCPcopy Index your code
hub / github.com/tinymce/tinymce / destroy

Method destroy

modules/tinymce/src/core/main/ts/api/Editor.ts:1173–1175  ·  view source on GitHub ↗

* Destroys the editor instance by removing all events, element references or other resources * that could leak memory. This method will be called automatically when the page is unloaded * but you can also call it directly if you know what you are doing. * * @method destroy * @param {B

(automatic?: boolean)

Source from the content-addressed store, hash-verified

1171 * @param {Boolean} automatic Optional state if the destroy is an automatic destroy or user called one.
1172 */
1173 public destroy(automatic?: boolean): void {
1174 EditorRemove.destroy(this, automatic);
1175 }
1176
1177 /**
1178 * Uploads all data uri/blob uri images in the editor contents to server.

Callers 15

BarsTest.tsFile · 0.45
BarManagerFunction · 0.45
destroyFunction · 0.45
withScratchDomUtilsFunction · 0.45
FakeCaretTest.tsFile · 0.45
DomParserTest.tsFile · 0.45
ImagePasteTest.tsFile · 0.45
safeDestroyFunction · 0.45
removeFunction · 0.45
destroyFunction · 0.45
destroyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected