Follow these simple steps to start using EO.Web Editor:
-
Drag an EO.Web Editor from the toolbox to your Web Form.
If you do not see the control in your toolbox, try
manually adding them;
- Optional. Set the editor's
Html
property to load the initial contents.
You can also load the initial contents from code:
[C#]
Editor1.Html = "initial editor contents.";
[Visual Basic.NET]
Editor1.Html = "initial editor contents."
-
Set the editor's TextAreaCssFile
property. The path must be a path relative to the application root, that is,
starting with "~/". For example, "~/styles/editor.css".
- Optional but recommended. Set the editor's
HtmlBodyCssClass property
to set the default text style (usually font) for the editor
contents;
- Include Save button in the toolbars,
or place other controls that can submit the page in the form.
For example, a standard ASP.NET Button control. This is usually necessary
when the editor contents and other page contents are to be submitted together;
- Run the page and edit the editor contents, then submit the page
with either the Save button or other controls that can post back
the page;
-
When the page posts back, use the editor's
Html
property to access the editor contents.