100% Managed Code

Light-weight, fast, self-contained, and secure:

No dependencies
on browsers or unmanaged code, or any code except the .NET framework.
Easy to install
supports XCopy-style deployment.
can run in the "Internet" security zone with minimal permissions.
Custom control for .NET
sample programs show how to use the control with Windows Forms or with ASP.NET.

Other editors use JavaScript in a browser, or an ActiveX component.

The ModelText editor, on the other hand, is 100% managed code, with no external dependencies. It does not invoke the web browsers installed on end users' machines, and it does not depend on COM interop, PInvoke, nor any other unmanaged code.


The ModelText HTML edit control is more secure, because it does not inherit the various security problems that come from using standard browsers.

  • The control doesn't let end user create dangerous elements such as <script>.
  • The control doesn't accept or process <script> elements when it renders HTML.
  • The control doesn't link to APIs for network I/O or file I/O.
  • The control can run in a sandbox, i.e. in the 'Internet' security zone, where the .NET framework itself would prevent it from invoking any dangerous APIs.


The control is easy to install:

  • Simple installation: 'xcopy deployment', without changing the end user's registry;
  • Independent of whatever browser versions may be installed on the users' machines;
  • Able to run in medium trust and low trust configurations, e.g. from a network drive.
  • Can be, but does not need to be, installed in the Global Assembly Cache.

Run-Time Permissions

Because the control uses only managed code, it's doesn't require unusual run-time permissions.

You can even run it using minimal partial trust in the "Internet" security zone, with only a slight limitation in functionality (which is that a control run in the "Internet" security zone cannot access the end user's clipboard).

System Dependencies

The control depends only on various assemblies which are shipped with version 2 (or higher) of the .NET framework, including:

  • System
  • System.Xml
  • System.Windows.Forms
  • System.Drawing

3rd-Party Dependencies

The control has no other external dependencies.