Bug causes repeated text

7 posts, 0 answers
  1. Rick Mason
    Rick Mason avatar
    16 posts
    Member since:
    Mar 2005

    Posted 13 Apr 2007 Link to this post

    Our editors have reported a bug which has occurred on several of the WCM pages they are working on. The bug causes text to be repeated in the free version of the MOSS editor. This is a regression from the beta, which does not show the same behaviour.

    Our editors have been using the Telerik editor in design mode only, and their content originates in Word. However, to get to a repeatable test case I have been using the HTML source view. The following HTML is a minimal example which triggers the problem:

    <p><span><ul><li>The ul tags around this produce the effect</li></ul>This text gets repeated <a href="http://www.telerik.com/">this link doesn't</a>.</span></p>

    It seems to happen when you have a block element, containing an inline element, containing another block element (where li is being treated as a block element). This is invalid HTML of course, but it's the kind of HTML we're dealing with.

    Removing the list eliminates the problem. Removing the span eliminates the problem. Removing the paragraph eliminates the problem. Changing the span to another inline element still causes the problem. Changing the list to another inline element still causes the problem (another "real" example had an h3 in here).

    Our editors have been seeing the text get repeated whenever they re-save their document. In my testing I discovered that it also gets repeated when you switch between design mode and HTML source mode. This suggests that the error is somewhere in your client-side reformatting code.

    I have tried re-installing the Telerik solution, but the problem remains. Until this problem can be resolved we have decided our best option is to revert to using the beta release.
  2. Rick Mason
    Rick Mason avatar
    16 posts
    Member since:
    Mar 2005

    Posted 23 Apr 2007 Link to this post

    Could someone from Telerik respond to this bug please. I would have raised this as a support ticket, but unfortunately your website won't let me.

    Will it be fixed either in a patch for the free version (and if so, when?), or in the full version due to be released soon?

    This is really important for us as our editors are in the middle of creating a large website using SharePoint 2007 WCM, and using the beta version of the control is not a long-term solution.

  3. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 25 Apr 2007 Link to this post

    Hi Rick,

    I am sorry for the delayed reply. We have managed to reproduce the bug and it will be fixed in the upcoming MOSS editor update.The new release (updated with editor 7.1) will hopefully be out on Friday.

    Sincerely yours,
    Lini
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. Rick Mason
    Rick Mason avatar
    16 posts
    Member since:
    Mar 2005

    Posted 25 Apr 2007 Link to this post

    Thank you Lini - that's great news.
  5. Rick Mason
    Rick Mason avatar
    16 posts
    Member since:
    Mar 2005

    Posted 06 Jun 2007 Link to this post

    I'm testing the pre-release version 4.0.4.0, and this bug is not fixed. The test case below still causes repeated text when switching between design mode and HTML source editing mode.
  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 06 Jun 2007 Link to this post

    Hi Rick,

    Unfortunately, our developers were not able to fix the problem in time for the release. The bug turned out to be a browser specific issue. When you enter the above content in IE, it converts it internally to the following:

    <P><SPAN>  
    <UL> 
    <LI>The ul tags around this produce the effect</LI></UL>This text gets repeated <href="http://www.telerik.com/">this link doesn't</A>.</SPAN> 
    <P></P

    As you can see, the content is no longer valid HTML. Our MOSS and SharePoint editors are set to produce XHTML content (the ConvertToXhtml property is set to True). When the invalid content goes through the XHTML filter, there is some unexpected behavior (in this case text is duplicated). If we switch off the ConvertToXhtml filter, the text is not duplicated. However, the HTML is still invalid. We experimented using the same content and other WYSIWYG editors, and noticed the exact same problem (which is normal, since the bug is browser related).

    In order to stop the text duplication, you must turn off the ConvertToXhtml filter from the editor's configuration file. The editor content will still be XHTML, since we have a second filter on the server. The ConvertToXhtml filter is only enabled on the client.

    All the best,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Rick Mason
    Rick Mason avatar
    16 posts
    Member since:
    Mar 2005

    Posted 03 Jul 2007 Link to this post

    Thank you very much for this workaround. Anything you can do to improve the XHTML in future versions is much appreciated. The mess generated by Microsoft's code causes a string of problems.
Back to Top