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

Bug causes repeated text

6 Answers 115 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Rick Mason
Top achievements
Rank 1
Rick Mason asked on 13 Apr 2007, 04:06 PM
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.

6 Answers, 1 is accepted

Sort by
0
Rick Mason
Top achievements
Rank 1
answered on 23 Apr 2007, 01:59 PM
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.
0
Lini
Telerik team
answered on 25 Apr 2007, 06:20 AM
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
0
Rick Mason
Top achievements
Rank 1
answered on 25 Apr 2007, 08:22 AM
Thank you Lini - that's great news.
0
Rick Mason
Top achievements
Rank 1
answered on 06 Jun 2007, 10:02 AM
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.
0
Lini
Telerik team
answered on 06 Jun 2007, 11:51 AM
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
0
Rick Mason
Top achievements
Rank 1
answered on 03 Jul 2007, 03:36 PM
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.
Tags
WebParts for SharePoint
Asked by
Rick Mason
Top achievements
Rank 1
Answers by
Rick Mason
Top achievements
Rank 1
Lini
Telerik team
Share this question
or