This is a migrated thread and some comments may be shown as answers.

Problem checking HTML content

2 Answers 51 Views
Spell
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 07 Apr 2009, 06:28 PM
Hi,

although I use the spellchecker from RadEditor I guess the topic is placed right here.
My Problem - I have a decorated letter like this:
<h3><span style="color: #ff0000;">E</span>uropean...</h3> 
 
The decoration was made by marking the letter and changing the text color.
Spell now argues that "uropean" is misspelled.

Does this mean Spell is not able to check HTML Text with some kind of "decoration"?

Regards

Manfred

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 10 Apr 2009, 02:33 PM
Hi Manfred,

This is HTML content but not MS Word and it is not possible to distinguish that a word is placed in two different tags. You can observe the same behavior in all web based dhtml editors.

If you get the spellchecked content using the get_text method of RadSpell then you will be able to spellcheck the whole word, but you will be not able to return the word with its HTML formatting.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
ManniAT
Top achievements
Rank 2
answered on 10 Apr 2009, 02:47 PM
Hi,

I was just thinking if this is also possible since the spellchecker is able to find "special tag" and exclude them from spellchecking.
So in theory it would also be possible to "undecorate" the text before checking.

BUT - and that is the problem I think - what shall be decorated after a correction was made :)

So the only possibility I can think off would be - undecorate for spellcheck - but disallow correction if an error is found.

Thanks

Manfred
Tags
Spell
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Rumen
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or