Problem checking HTML content

3 posts, 1 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 07 Apr 2009 Link to this post

    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. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 10 Apr 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 10 Apr 2009 Link to this post

    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
Back to Top