Welcome Guest Search | Active Topics | Sign In | Register

Spell Check Multiple Controls including HtmlEditor Options
TMcCabe
Posted: Friday, August 26, 2016 2:00:38 PM
Rank: Member
Groups: Member

Joined: 12/9/2010
Posts: 28
EO Web 11.0.66.2

I have a form with multiple fields including one HtmlEditor control. The HtmlEditor control includes a spellcheck button that references SpellChecker1. The same spellchecker also is triggered by another button.

When the spellchecker ControlToCheck list includes all of the controls except the HtmlEditor, it runs fine. Using the spellcheck from the HtmlEditor will correctly spellcheck only the contents of the HtmlEditor.

When it includes the HtmlEditor, it will spell check the other controls (in order), hang for several seconds (subjective: about a minute) and then return spelling results like

Code: HTML/ASPX
//<![CDATA[ EO1166.f.aso(); //]]> 
 //<![CDATA[ EO1166.f.asp(); //]]> 
 //<![CDATA[ EO1166.f.aso(); //]]> 
 //<![CDATA[ EO1166.f.asp(); //]]> 
 //<![CDATA[ EO1166.f.aso(); //]]> 
 //<![CDATA[ EO1166.f.asp(); //]]> 

... 
many blank spaces
...
the contents of the lookup lists (Heading 1 Heading 2 Heading 3 Heading 4, the fonts, etc.)
the footer contents (path: <BODY></BODY>,,,,


it looks like the button-triggered spell check is including everything within the HtmlEditor control, including the header and footer templates. Interestingly, the misspelled word in the body of the HtmlEditor is not included on the list of mis-spelled words shown in the dialog for that control.

I have customized the header template on the HtmlEditor to hide many of the controls. I get the same behavior with a stock HtmlEditor (no customization) -- just with a lot more of the //<![CDATA[ EO1166.f.asp(); //]]> lines.

I have also tried replacing the HtmlEditor with a Text field and using the AJAXControlToolkit HTMLEditor extender. That did trigger normally (but the escaped HTML formatting made the list of errors nearly unreadable. This is apparently a known issue.

My preference for UX would be to have a single spell check trigger rather than one for the HtmlEditor and one for everything else. I'm not seeing how to include only the body of the HTML editor when I'm checking multiple controls.


eo_support
Posted: Friday, August 26, 2016 2:19:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

There is no way to do that. The Editor is a special control that talks to the SpellChecker through its own internal private interface. The public interface of the SpellChecker, will treat the element specified by ControlToCheck as a single textbox, all the logic related to this code path, such as highlighting and correction are all based on textbox and won't work with the Editor control. So you will have to use two different SpellChecker control.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.