Skip to main content

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.

public class igHtmlEditor : igBase

Constructors​

Instance member 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);

Instance member igHtmlEditor(options)​

Constructs a new instance of the igHtmlEditor class using the specified options.

NameTypeDescription
optionsObjectInitial 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");

Implements​