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

RadSpell leaving bits behind in document

9 Answers 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 30 Jun 2011, 12:41 PM
Hello.

We're currently working on a mailmerge app and are keeping metadata within each letter we create (to tell the app what the name of the letter should be, what the header and footer logos should be, the email details, etc.).  An example is below:

<blink emailbody="&lt;P&gt;
&lt;\P&gt;" fromline="eg@example.com" toline="[[~Email]]" subject="t/o ref diff to cc" footer="http://earnpsqldb01/letters/logos/[[brand]]Footer.html" header="http://earnpsqldb01/letters/logos/[[brand]]Header.html" ver="1.0" name="t_o ref diff to cc for [[~Title]] [[~Name]] (ID [[~ID]])"><br />


When the user runs a spell check on the letter we find that it is leaving bits of data behind - this is breaking the PDF and email functions.  See below:

<blink emailbody="&lt;P&gt;
&lt;\P&gt;" fromline="eg@example.com" toline="[[~Email]]" subject="t/o ref diff to cc" footer="&lt;span class='RadEWrongWord' id='RadESpellError_0'&gt;http&lt;/span&gt;://&lt;span class='RadEWrongWord' id='RadESpellError_1'&gt;earnpsqldb01&lt;/span&gt;/letters/logos/[[brand]]Footer.&lt;span class='RadEWrongWord' id='RadESpellError_2'&gt;html&lt;/span&gt;" header="&lt;span class='RadEWrongWord' id='RadESpellError_3'&gt;http&lt;/span&gt;://&lt;span class='RadEWrongWord' id='RadESpellError_4'&gt;earnpsqldb01&lt;/span&gt;/letters/logos/[[brand]]Header.&lt;span class='RadEWrongWord' id='RadESpellError_5'&gt;html&lt;/span&gt;" ver="1.0" name="t_o ref diff to cc for [[~Title]] [[~Name]] (ID [[~ID]])"><br />



Is there any way to fix the spellcheck so that it removes ALL trace of itself?

Warren

9 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Jul 2011, 08:06 AM
Hi Warren,

I tried to reproduce the problem but without success. Could you please see the following video and let me know what I am missing: http://screencast.com/t/r1h9wH7N?

It is also recommended when using custom tags to apply a namespace. See this article for more information: Using Custom Tags in Internet Explorer.

My suggestion is to also try the standalone spellchecker which should fix the problem: Using RadSpell "Prometheus" dialog with RadEditor "Prometheus" as a custom tool.

Greetings,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Warren
Top achievements
Rank 1
answered on 05 Jul 2011, 10:01 AM

Thanks.

 

I’ll have a look at your links and the Prometheus checker.  It looks like the spell checker is looking inside tags.

 

I’ve uploaded a screencast that shows the issues that we get with our version – it might help you see the problems we’ve been having.

  

http://screencast.com/t/7rqVgvz7fOj

 

 

Warren

0
Rumen
Telerik team
answered on 07 Jul 2011, 09:18 AM
Hello Warren,

The solution is to comment the custom tag and the spellchecker will not spell check it, e.g.

<!--blink emailbody="<P>
<\P>"
fromline="eg@example.com"
toline="[[~Email]]"
subject="t/o ref diff to cc dasda"
fozzzoter="http://earnpsqldb01/letters/logos/[[brand]]Footer.html"
header="http://earnpsqldb01/letters/logos/[[brand]]Header.html"
ver="1.0"
name="t_o ref diff to cc for [[~Title]] [[~Name]] (ID [[~ID]])">
[[today]]
</blink-->

Best regards,
Rumen
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Warren
Top achievements
Rank 1
answered on 20 Jul 2011, 12:27 PM
Hello.

Loading a file seem to remove the comments and all the contents within it.  Or am I doing it wrong?

Warren
0
Rumen
Telerik team
answered on 22 Jul 2011, 03:34 PM
Hello Warren,

You should not experience such a problem. I tried to reproduce it with the live demos but without success. Could you please see the following video http://screencast.com/t/fYNLGjoNAx and let me know what I am missing?

Kind regards,
Rumen
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Warren
Top achievements
Rank 1
answered on 22 Jul 2011, 04:02 PM
Hello.

You don't seem to be missing anything from your example other than loading the document using your own file manager.

Here's my example:

http://www.screencast.com/t/ieDLp2A3n8bY
0
Dobromir
Telerik team
answered on 26 Jul 2011, 01:40 PM
Hi Warren,

Could you please try to add some extra content (a simple &nbsp; should be enough) before the comment tag and see if the problem still occurs?

Best wishes,
Dobromir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Warren
Top achievements
Rank 1
answered on 26 Jul 2011, 02:05 PM
Hello.

I tried with several combination of spaces, newlines, metadata inside/outside the blink tags.  It looks like all comments are stripped from the HTML when either the text is loaded from the disk or inserted in the radeditor.

Warren
0
Warren
Top achievements
Rank 1
answered on 28 Jul 2011, 02:07 PM
I think I found the problem.

If there isn't at least one character before the comment then it is stripped from the file.

I got around the problem by putting a &nbsp;  BEFORE the comment, i.e.

&nbsp;<!--<blink
    footer="http://lownptravdev01/letters/logos/[[brand]]Footer.html"
    header="http://lownptravdev01/letters/logos/[[brand]]Header.html"
    emailbody="&lt;P&gt; &lt;\P&gt;"
etc...

Now the spellchecker ignores the content of my meta data.

Thanks,

Warren
Tags
Editor
Asked by
Warren
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Warren
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or