The removeFromDom method closes the WebSocket connection gracefully and removes the whole editor from the DOM.
Introduced: 24.0.
[JavaScript] <void> TXTextControl.removeFromDom();