Example applications
To learn how to use soEditor in your applications, we recommend studying the example applications that are included in the soEditor installation file. These applications contain simple real-world examples of using soEditor in your applications. In order to provide a solid understanding of how to use soEditor, we have also included the ability to view source code within each example. To view the examples, browse to:
http://{www.yoursite.com}/siteobjects/soeditor/lite/examples/default.asp
(you may have to change this url if soEditor was not installed in the default directory)
Spellchecking support
soEditor Lite currently supports spellchecking
by integrating the Spellchecker.net service into the tag. This is not
a free service, you must have an account with Spellchecker.net before
using it. The
following describes the steps needed in order to enable spellchecking
in soEditor:
Visit Spellchecker.net and sign up for an account.
Edit line #12 in spch.js from the soEditor installation
with the correct customerid you received from Spellchecker.net:
e.g. var customerid = "1:Kfej8-BIuD71-ueCJY-eZUg03-TaquP3-ojrti4-8zSkI2-gbBru1-Xm2AR1-rRRCk1";
Enable spellchecking in soEditor by setting the spellCheck property to "true"
Extending soEditor
soEditor also provides features to allow developers to extend the functionality
to include insertion of specific html blocks through the insertText method
of the soEditor control. By
calling method with JavaScript one can insert specific text or HTML into
the document being created or edited. This
feature can be used to create new functionality based on the soEditor
control. With source versions of soEditor, custom buttons and toolbars
can be created using this functionality.
soEditorFieldName.insertText(sStart, sEnd, asHTML, bAllowEmpty);
sStart String to be inserted before the start of the current selection.
sEnd String to be inserted after the end of the current selection.
asHTML Boolean variable indicating if the text should be inserted as rendered HTML or as Plain text.
bAllowEmpty Boolean variable indicating if the text can be inserted without a selection being made.
* FieldName is the name of the field attribute specified when calling soEditor