.NET HTML Editor Control for Windows Forms-based Applications

Building a WYSIWYG HTML editor-oriented Windows Form application on the .NET Framework could never be easier. You’re a .NET developer looking for a WYSIWYG editor control that takes/returns an HTML string, and you want your app to run on .NET 2.0, 3.0, 3.5, and 4.x, right? You have landed in the right place. SpiceLogic gives you a highly efficient .NET WYSIWYG editor control for Windows Forms that GETs and SETs HTML string. You can use this control to develop Windows applications such as Web Page Content Editor, Full Web Page Editor, Email Message Composer, or any application that uses a rich-formatted text editor for its user. The control comes with 2 special value properties, “BodyHtml” and “DocumentHtml”. BodyHtml gets/sets the partial html content as [b] Bonjour Monde[/b]. HTML document gets/sets the entire HTML document that can be used for a complete web page like [HTML][head][/head][body][b] Bonjour Monde [/b][/body][/HTML].

The editor comes with many HTML editing tools. You can customize all items on the toolbars. Even if you don’t want to use the default factory items and instead use your own, this control provides you with an easy-to-use interface for creating your own toolbar items. All factory items are fully customizable. Furthermore, all the functionality of the toolbar items can be implemented externally using the extensive set of public methods. This time you don’t need to worry about the location. You can customize all the texts and replace the factory provided dialogs with your own dialogs in your own language! It is highly optimized for Windows Vista 64-bit operating systems. HTML value properties are optimized for data binding. It comes with many useful public properties, methods, and events. A good spell checker is built in there. Also, the body style can be edited using a rich CSS GUI editor, which is available both at design time and runtime.

Reflexes:

Base and relative URL support:

This control is well suited for HTML documents that have relative URLs in the resource path reference. So now you can display an image in the editor simply with the following tag: [img src=”myImage.jpg” /]. The control comes with a property called “BaseUrl”. You need to set that property to the images folder or Internet URL. Guess what!! You can push your app to your user’s PC where you simply change the base URL programmatically so that the images can be displayed on any of your user’s PCs.

Spelling checker:
This control is presented with a spell checker. You can use your own dictionaries with the spell checker.

Search API:
The Search API is included with the control. You can use the default search dialog, or you can implement the search dialog yourself.

Customizable interface:
This control comes with two toolbars out of the box, with many rich toolbar elements. They are perfect enough to do almost all your editing tasks. You can also customize them. Even if you don’t want to use them and instead use your own toolbar items, you can do that too.

Fashion design and fashion font:
There are two editing modes available. WYSIWYG layout mode and Raw Html source mode that will give you complete control over the HTML content.

Events:
Two notable events are worth mentioning. Paste event and modified HTML event. Guess what!! You can intercept the Paste event and manipulate the content pasted from the Clipboard and apply your filter logic. Very useful for filtering MS Word content while pasting. HTMLChanged event, fires as soon as the html is changed, similar to the TextChanged property of a textbox control. You can also change the default HTML loading and saving behavior in the editor to suit your needs.

Methods:
There are many useful methods, such as getting or setting caret positions, scroll positions, GetPlainText() method. The GetPlainText() method does not return a plain text version of the HTML. Rather, the returned text will retain the layout of the original HTML content, such as tables, paragraphs, etc. Great, isn’t it?

Properties:
There are many useful properties such as scrollbar visibility properties (GET/SET), read-only property (GET/SET), Word Wrap property (GET/SET). Property available to choose Single Line Break or Paragraph in the response of the Enter key.
The operations composite property contains methods associated with the items on the toolbar. That is, if you want to create your own button and give it the default copy functionality, you can call the Copy() method of this property.
The SelectionState property, as its name suggests, deals with the content of the editor. Like getting the attributes of the editor elements and also determining the state of the current selection. It has properties like IsBold, IsHyperLinkSelected, IsImageSelected, IsItalic, etc. Contains one of the important ActiveHTMLElement properties of type IHTMLElement. This property gives you complete programmatic control to get the active element as a document object model and to manipulate the element (as a node).

The data link:
For data binding purposes, you can bind any dataset string fields to the BodyHtml or DocumentHtml properties of the editor. This will give you an excellent opportunity to use database models with the editor.

Document style:
In addition to designer mode, you can change the style of the document body directly from the editor, both in designer mode and at runtime.

Other cool features include:
— Basic enough for even the most novice users.
— Optimized for Vista 64-bit operating system.
— Design-time GUI collection editor available to manipulate properties of toolbar items.
— Simple interface to add a new toolbar item.
— HTML can be retrieved as plain old HTML, XHTML and XML
— Generate clean [span] tags for font elements; ([span]text here..[/span] (no [font]text here.[/font])
— GUI dialog to insert/update tables
— GUI dialog for editing table cells.
— GUI search dialog; The Search API is also available to implement your own search user interfaces.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *