RadSpell leaving bits behind in document

10 posts, 0 answers
  1. Warren
    Warren avatar
    6 posts
    Member since:
    Apr 2011

    Posted 30 Jun 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    13748 posts

    Posted 05 Jul 2011 Link to this post

    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.

  3. Warren
    Warren avatar
    6 posts
    Member since:
    Apr 2011

    Posted 05 Jul 2011 Link to this post

    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

  4. Rumen
    Admin
    Rumen avatar
    13748 posts

    Posted 07 Jul 2011 Link to this post

    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!

  5. Warren
    Warren avatar
    6 posts
    Member since:
    Apr 2011

    Posted 20 Jul 2011 Link to this post

    Hello.

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

    Warren
  6. Rumen
    Admin
    Rumen avatar
    13748 posts

    Posted 22 Jul 2011 Link to this post

    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!

  7. Warren
    Warren avatar
    6 posts
    Member since:
    Apr 2011

    Posted 22 Jul 2011 Link to this post

    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
  8. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 26 Jul 2011 Link to this post

    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!

  9. Warren
    Warren avatar
    6 posts
    Member since:
    Apr 2011

    Posted 26 Jul 2011 Link to this post

    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
  10. Warren
    Warren avatar
    6 posts
    Member since:
    Apr 2011

    Posted 28 Jul 2011 Link to this post

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