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

XHTML Output for MOSS 2007

3 Answers 117 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
starke
Top achievements
Rank 1
starke asked on 08 Jun 2007, 04:01 AM
Hi,

I've read in the post (http://www.telerik.com/community/forums/thread/b311D-thhag.aspx) that sharepoint will filter rich text fields automatically, thus even if RadEditor for MOSS output is xhtml compliant, the result saved by sharepoint will not be.

I'll like to ask if anybody has any solution in overcoming this problem and make the content xhtml compliant when sharepoint displays it.


Thanks & Regards
starke

3 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 08 Jun 2007, 01:40 PM
Hello starke,

The thread you linked to is about the previous version of the MOSS editor (4.0.0). We have made a lot of enhancements in the current release (4.1.0). One of the changes is to try and make the HTML field output valid XHTML. I advise you to install the 4.1.0 build and review the WCM field editor again.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sam Langdon
Top achievements
Rank 1
answered on 27 Jun 2007, 04:43 PM

I'm having the same issue and I'm using 4.1. As starke says though, it's not the editor so much as the way MOSS 2007/WSS renders the HTML. For example, it actually removes the xhtml from this:

<strong class="ms-rteCustom-ArticleHeadLine">Some nice formatted text<br /><br /><img style="WIDTH: 66px; HEIGHT: 42px" alt="My image" hspace="1" src="http://mywebsite.dev.l360.co.uk/Style%20Library/Images/bl_logo.jpg" vspace="1" border="0" longdesc="My image" /></strong>


turning it into this:

<strong class=ms-rteCustom-ArticleHeadLine>Some nice formatted text<br><br><img style="width:66px;height:42px" alt="My image" hspace=1 src="/Style%20Library/Images/bl_logo.jpg" vspace=1 border=0 longdesc="My image"></strong>

Any ideas? Is there a doctype setting in Sharepoint I'm missing?

Cheers,
Sam

0
Sam Langdon
Top achievements
Rank 1
answered on 27 Jun 2007, 05:34 PM
Scrub that - I just found the answer in the aforementioned post (http://www.telerik.com/community/forums/thread/b311D-thhag.aspx) - just need to use a plain text field instead of a rich text field. Nice (but overcomplicated - damn you Sharepoint).
Tags
WebParts for SharePoint
Asked by
starke
Top achievements
Rank 1
Answers by
Lini
Telerik team
Sam Langdon
Top achievements
Rank 1
Share this question
or