Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Html Editor not taking hyperlinks in edit mode

  Asked By: Ivan    Date: May 14    Category: Sharepoint    Views: 2939

In publishing portal i have created one page which have "Html Editor".When i open page in edit mode and paste my html content in html editor,it takes all contents like image tags,text....but does not take hyperlinks.It gives error while i click on "Submit for Approval" like

This page contains content or formatting that is not valid. You can find more information in the affected sections.

when i put hyperlink

<a href="welcome.aspx">Welcome</a>

it converts it to


or when i paste

<a href="welcome.aspx"><img id="idImg" runat="server" src="/Style%20Library/someimg.gif" /></a>

it converts it to

<img id="idImg" runat="server" src="/Style%20Library/someimg.gif" />

My content type have "Page Content" which is Html Editor.

In page layout i have

<PublishingWebControls:richhtmlfield id="idHtml" FieldName="PublishingPageContent" AllowExternalUrls="True" AllowImages="True" AllowHTMLSourceEditing="True" AllowHyperlinks="True" runat="server"></PublishingWebControls:RichHtmlField>



1 Answer Found

Answer #1    Answered By: Britni Shepard     Answered On: May 14

I got the answer.

In sharepoint when you provide page  links which are not present is not valid  links. For test purpose i was putting some non existing links.
You need to provide links which are present and also need to give correct path.

Didn't find what you were looking for? Find more on Html Editor not taking hyperlinks in edit mode Or get search suggestion and latest updates.