The most functional, managed
HTML edit control for Windows Forms
Users who create text will often want formatted text. XHTML is a great format. This WYSIWYM (What You See Is What You Mean) editor lets users create clean, semantic XHTML using a simple, well-known Windows editing GUI.
Most users are familiar with the standard GUI for a text editor.
A WYSIWYM (What You See Is What You Mean) editor lets users edit the structure of a document or HTML fragment. The toolbar lets them create different types of element: including paragraphs, headings, lists, and tables.
The visual style of each element is defined using CSS. The CSS used by the control to render the XHTML is usually defined by your application, and not by the end user.
Unlike a WYSIWYG editor, the toolbar supports editing the XHTML structure, not the visual styles.
It doesn't create elements which only affect the appearance, for example
and it doesn't edit element attributes, for example the
The output from the editor, the resulting document, is clean, semantic XHTML.
There are several other ways to edit HTML:
For many end users and applications, a WYSIWYM editor is better than any alternative:
|WYSIWYG editing||HTML which has embedded formatting information
The output from some WYSIWYG editors is difficult to process, because it's 'tag soup': the output is only intended to be rendered by a browser, not to be readable using other software. The output from the ModelText HTML editor, on the other hand, is clean XHTML.
|Markdown syntax; and other markup languages||Some of these languages aren't as expressive as HTML (for example, BBCode doesn't support headings).
For other elements
the markup isn't really much easier than raw HTML.
The various markdowns and markups each have their own syntax, which casual and non-expert users may not know.
There's no immediate visual feedback about whether the markup is correct (uness you implement a live preview, synchronized to the user's edits).
|Raw HTML||End users may not know HTML, or not want to think about it when they're concentrating on writing content.
Raw HTML can easily introduce markup bugs, for example elements without an end tag.
Raw HTML can even introduce malicious behaviour, for example if the users types in
ModelText's editor was designed from scratch with WYSIWYM editing in mind:
© 2009-2012, Christopher Wells. All rights reserved.