Version

Remove a Special Character in WebHtmlEditor

WebHtmlEditor™ lets end users enter special characters that are uncommon on most keyboards by selecting them from a drop-down list without having to know their esoteric encoding. The WebHtmlEditor control provides a starter list containing some common special characters, but your application can remove any pre-existing items from the drop-down list.

In the example code below, you will remove the currency symbols that are contained in the Special Character List by default.

In the Page_Load event handler of your Web form, remove any HTML character entity references for special characters that you do not want to be available in the Special Characters Toolbar drop-down list.

In Visual Basic:

' Remove all currency symbols from the Special Characters drop down.
Me.WebHtmlEditor1.SpecialCharacterList.Remove( "€")
Me.WebHtmlEditor1.SpecialCharacterList.Remove( "£")
Me.WebHtmlEditor1.SpecialCharacterList.Remove( "¥")

In C#:

// Remove all currency symbols from the Special Characters drop down.
this.WebHtmlEditor1.SpecialCharacterList.Remove( "€");
this.WebHtmlEditor1.SpecialCharacterList.Remove( "£");
this.WebHtmlEditor1.SpecialCharacterList.Remove( "¥");
Note
Note:

For a list of all HTML character entity references, consult on the W3C® web site.