When using the MVC TX Text Control, you will need to remove an existing component from the DOM first as only one TX Text Control is allowed on a view.
The partial view that contains TX Text Control is very simple:
The view that embeds the partial view contains a div into which the partial view is loaded dynamically using jQuery code:
╰ TXTextControl Object
╰ removeFromDom Method
The removeFromDom method closes the WebSocket connection gracefully and removes the whole editor from the DOM. is used to close the WebSocket connection gracefully and to remove the editor from the DOM.
The controller method EditorPartial returns the partial view and is called by jQuery asynchronously: