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

[Solved] Spell checker not ignoring Style block

4 Answers 119 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 May 2008, 04:53 PM
Hi,

From the Overview, one of the features of the RadSpell:

Ignoring inline scripts and style definitions
RadSpell now automatically ignores inline script tags (<script></script>) and style definitions (<style></style>) in the HTML code. Since those tags are not used for storing text, they are not processed in order to avoid false spelling error reports.

Unfortunately, this is not working for me.  I have a style block, following the opening body tag, and..

heres a snippet of style definition before spell check:
BODY {
PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 0px; PADDING-TOP: 10px; BACKGROUND-COLOR: #867833
}
TD {
VERTICAL-ALIGN: top
}

and, same snippet, after spell check:
BODY {
PADDING-RIGHT: <span class='RadEWrongWord' id='RadESpellError_0'>10px</span>; PADDING-LEFT: <span class='RadEWrongWord' id='RadESpellError_1'>10px</span>; PADDING-BOTTOM: <span class='RadEWrongWord' id='RadESpellError_2'>10px</span>; MARGIN: <span class='RadEWrongWord' id='RadESpellError_3'>0px</span>; PADDING-TOP: <span class='RadEWrongWord' id='RadESpellError_4'>10px</span>; BACKGROUND-COLOR: #867833
}
<span class='RadEWrongWord' id='RadESpellError_5'>TD</span> {
VERTICAL-ALIGN: top
}

How can I preserve my styles?? 
Additionally, can I ensure they remain one per line, like:
BODY {PADDING-RIGHT: 10px; }
TD {VERTICAL-ALIGN: top}


Thanks!  David

btw- I know that style blocks ought to be in the head, but for html emails (newsletters) this seems to be a common means to ensure styles apply, as many email clients strip all tags outside, and including, the body tag.  


4 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 30 May 2008, 01:44 AM
As expected, placing the style block within the head tag, it is not affected by the spell-checker.

Please consider, for future release, to avoid the style tags & contents... regardless of location. 

Thanks.. David
0
Accepted
Rumen
Telerik team
answered on 02 Jun 2008, 07:59 AM
Hi David,

Thank you for your feature request.

Indeed, the spellchecker will ignore the CSS classes if the STYLE tags are placed inside the HEAD tags. I logged your request in our ToDo list and we will consider its implementation for one of the next major versions of RadSpell.

We do appreciate your feedback and the provided idea and we updated your Telerik points.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 1
answered on 02 Jun 2008, 07:00 PM
Great.. Thanks.

Well, since this turned into a Feature Request--

Could it Not reformat the style definitions (regardless of location), or..  say, provide an option/property to inhibit reformatting?

Thanks!
David
0
Rumen
Telerik team
answered on 03 Jun 2008, 08:37 AM
Hi David,

Thank you for the additional information. I added it to your initial request and our developers will have it in mind when implementing this feature.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or