EO.Web SpellChecker can display spell errors and suggestions in
a SpellCheckerDialog.
This section covers how to use and customize the dialog.
Using SpellCheckerDialog
See
getting started for detailed steps.
Customizing SpellCheckerDialog
Both the style and the layout of the dialog can be customized.
To customize the style of the dialog, see
configuring dialog's style. The following properties
can also be used to customize the suggestion list:
The dialog's layout can be customized through the dialog's
ContentTemplate property.
ContentTemplate can include any valid HTML or server control, but it
recognizes a few special control IDs and associate specific functionalities to
these controls. The following table lists all these special controls:
|
ID |
Remark |
| TextPanel
|
Should be an ASP.NET Panel control. This panel is
used to display the HTML that has been checked. Errors
are also highlighted in this area.
Style options such as border, background color and font
are usually applied on this panel to distinguish the
region in the dialog.
|
| SuggestionPanel
|
Should be an ASP.NET Panel control. This panel
is being used to display the suggestion list.
Style options such as border, background color and font
are usually applied on this panel to distinguish the
region in the dialog.
|
| IgnoreOnceButton
|
Usually is an ASP.NET Button control. When this
button is clicked, it ignores the current error and moves
onto the next one.
|
| IgnoreAllButton
|
Usually is an ASP.NET Button control. When this
button is clicked, all errors that are the same as the
current error are ignored.
|
| AddCustomButton
|
Usually is an ASP.NET Button control. When this
button is clicked, the current word is added into user
dictionary, thus is subsequently considered correct.
|
| ChangeButton
|
Usually is an ASP.NET Button control. When this
button is clicked, the current word is changed to the
contents of the ChangeToText text box.
|
| ChangeAllButton
|
Usually is an ASP.NET Button control. When this
button is clicked, all errors that are the same as
the current one are being corrected with the
content in the ChangeToText text box.
|
| CloseButton
|
Usually is an ASP.NET Button control. When this
button is clicked, the dialog closes.
|
| ChangeToText
|
Should be an ASP.NET TextBox control. This text box
contains the text that is used to correct the current error.
When user chooses a suggestion from the suggestion list,
the dialog automatically fills this textbox with the
selected suggestion. User can also enter the
correct spelling in this textbox directly.
|
The easiest way to customize is to start from the default template, which
already contains all controls listed above. To start from the default
template, right click the control, then select Edit Template from the
context menu, then select ContentTemplate, this switches the dialog
into template editing mode with the default ContentTemplate filled in.