igHtmlEditor
Namespace: Wisej.Web.Ext.Ignite
Assembly: Wisej.Web.Ext.Ignite (4.1.0.0)
The igHtmlEditor control is a jQuery HTML editor control that features standard HTML editing capabilities.
- C#
- VB.NET
public class igHtmlEditor : igBase
Public Class igHtmlEditor
Inherits igBase
Constructors
igHtmlEditor()
Constructs a new instance of the igHtmlEditor class.
Example:
The following example creates an HTML editor and sets its content through the Options object.
var editor = new igHtmlEditor();
editor.Options.value = "<p>Hello <b>World</b></p>";
editor.Dock = DockStyle.Fill;
this.Controls.Add(editor);
igHtmlEditor(options)
Constructs a new instance of the igHtmlEditor class using the specified options.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options passed to the igHtmlEditor widget: an anonymous object, a JSON string or a dynamic object. |
Example:
The following example creates an HTML editor without the toolbar used to insert objects and reads the HTML entered by the user from the widget.
var editor = new igHtmlEditor(new
{
value = "<p>Hello <b>World</b></p>",
showInsertObjectToolbar = false
});
editor.Dock = DockStyle.Fill;
this.Controls.Add(editor);
// later, i.e. in a button click handler.
string html = await editor.Instance.getContentAsync("html");