The MVC version of TXTextControl.Web provides an HtmlHelper to support the rendering of the HTML5-based editor in a view.

In the HtmlHelper, all properties can be adjusted and methods can be called to load documents or to load a database. In order to render the default view of TXTextControl.Web, the following simple razor code is required:

Loading...

In order to set properties of the TXTextControl.Web object, lambda expressions can be used. The following razor code shows how to set several properties that will be applied automatically when rendering the control:

Loading...

Additionally, methods can be called in the HtmlHelper. The following code snippet loads a document and loads an XML database for the Reports ribbon tab:

Loading...