Closes the WebSocket connection gracefully and removes the whole editor from the DOM.

Introduced: X14.

<void> TXTextControl.removeFromDom()

Further Reading

Learn more about the Javascript: TXTextControl.removeFromDom Method in the Text Control Blog: