.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Javascript error on Rich Text Editor of CEWP

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint
Hi all,

I have a problem that is really bugging and I wasn't able to find any workaround all day. I'll try to give as many details as possible:

I'm maintaining several site collections on a single server and this problem occurs only on one of the site collections. However it occurs on all subsites of this collection, it occurs on old pages and newly created pages, even on pages containing only one empty CEWP.

When I'm pressing the button for Rich Text Editor of CEWP I get the following error:

Message: Invalid argument.
Line: 5740
Char: 2
Code: 0
URI: http://www.dyrlaegeankenaevn.dk/_layouts/1030/HtmlEditor.js

I've tracked down the error with IE developer tools and I found that the error pops up in HtmlEditor.js at

function RTE2_GenerateLaunchArguments(parameterArray, webUrl, containerID)
    ............some code goes here......................
    ............some code goes here......................

I followed containerID down the stack and it comes from:

View Complete Post

More Related Resource Links

Rich Text editor comes up with random error The Page took too long to save. You can click "Cancel",

I seem to get a random error when i open the rich text editor in a content editor web part and try to save the changes.

The error i get is:
Are you sure you want to navigate away from this page?
The page took too long to save. You can click "Cancel", and then try to save the page again. If you click "OK", you might lose unsaved data.
Press OK to continue, or Cancel to stay on the current page.

If i click OK it seems to save the changes but this problem is very annoying and users are obviously worried when they see this error.
Does anyone have any ideas what is causeing this error across the entire site? and are there any fixes?

thanks for your time,

Tony Phillips

rich text editor



I need to implement one text editor in my application. I dont need a complex one, i just need a simple one.

please help me


cannot currently modify this text in the editor.It is read only error


Hi, perhaps i have found a bug in Visual Studio 2008 Team Edition.Every thing was going well.

I started to build my project, but for certain reasons i went to Built Tab and while the project wes in build process i clicked Cancel Button.

Alas!! after that my class file has gone to non-editable mode.It is giving this error:

"cannot currently modify this text in the editor.It is read only ".I closed and again opened Project but no improvement.I went to Tool->Import Export Setting->reset all settings but no benefit.

How to resolve this problem ?

Mission Impossible? Use Javascript to Disable a Multi-Line Rich Text Field


Hey Community,

Here's a tough one that I have struggled with and so far have not been able to find an answer for - how do you use Javascript to disable a multi-line rich text field.  I have customized a SP Edit form by adding a CEWP.  In the CEWP I have added the Javascript below (only a partial code sample provided) to disable several fields in the form.  The code works fine for single line text fields but it does not work for multi-line rich text fields.  Any suggestions?

<script language="javascript">
//This runs the function when the form first loads

//This locks the fields the users should not modify
function lockFields()
  var theInputTFTitle = getTagFromIdentifierAndTitle("Input","TextField","Title");
  theInputTFTitle.readOnly = true;
  theInputTFTitle.style.color = 'gray';
  //alert(" Value: " + theInputTFTitle.value);//for testing

   var theInputDDLReplyStatus = getTagFromIdentifierAndTitle("select","DropDownChoice","Reply Status");
  theInputDDLReplyStatus.disabled = true;
  //alert(" Value: " + theInputDDLReplyStatus.value);//for testing

  var theInpu

Remove Word Style once copy and paste content to Rich text Editor in sharepoint 2010

Hi Guys, I have page layout for Users to add content for Page.I have site column for page content on field type HTML with Richtextmode="FUll Html". Now when user cut and paste content from Word document in this Field it carry word document style. how can i control this content on Page layout with CSS. Please adviseThanks Ron

How to modify Rich Text Editor Tool Bar

Besides using jQuery, is there an easy way to remove buttons such as 'Bold' and 'Italic' from the RTE tool bar? How about the buttons in the Rich Content Editor web part?

SharePoint 2010 Rich Text Editor field

I want to embed iframe tag in Sharepoint 2010 rich html text editor control, but it is simply remove the tags when i save the content. Please let me know how can i do this?

Rich text editor for Title field in Publishing site


I have one French publishing site. I want to set one page title like this: see BOTOX trademark here . To show title like this i need to put tag like Product <sup>MC</sup> . Problem is, if i put above tags in title text box at the time of page creation then page title showing Product <sup>MC</sup> not  like above site.


Regards, Sandip Patil, .Net,Sharepoint Developer www.worldofsharepoint.com

MOSS 2007 Rich Text Editor Java Issue


Hi I have strange problem with Sharepoint at the moment that when I try to edit an 'Content Editor Web Part' using the Rich Text Editor button all I get is an error icon at the bottom of the IE 8 Window and when I double click the icon/shield to see what the issue is I am greeted by

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Mon, 27 Sep 2010 10:31:21 UTC

Message: Object doesn't support this property or method
Line: 7307
Char: 2
Code: 0
URI: https://s6fnet.s6f.org.uk/_layouts/1033/HtmlEditor.js

Has anyone came across this issue before?

The MOSS 2007 is fully updated and patched.

How can I add a SharePoint Rich text editor in my custom application page?


I want to have a richtext editor in my custom application page.

Can I use the richtext editor  bulit-in in SharePoint?

I tried add this code in my aspx but it doesn't render the control but throw a error

<SharePoint:RichTextField ID="DefaultValue" runat="server" ControlMode="New" FieldName="Title"></SharePoint:RichTextField>

Anyone helps?

Rich Text Editor in Google Chrome


 I'm tring to put up a AjaxControlToolkit.HTMLEditor it works in all the browsers except Chrome has any one had this problem

restrict rich text box to certain fonts and colours in content editor web part - Sharepoint 2010 -




Just wondering if anyone knows a way to make only certain fonts and colours available to rich text box in the content editor web part?

also is there a way to make only certain features available in the rich text box, ie only let the users change font, but not let them use bullet points etc.




WSS 3.0 Rich Text Editor toolbar not rendering correctly


Several users along with myself are having an issue when creating or editing items on a list concering Rich Text field on them. This is only affect certain site collections and not all of them on the server. For instance, site server/sites/siteA has the issue but server/sites/siteB doesn't. The toolbar is replace with an icon. When the icon is moused over it displays the tooltip "Right-to-Left(Click Ctrl+Shift+<)". The only thing that I am aware of that has change on the WSS server is that Search Services has been enabled. There has been no other mofications to the server that I am aware. I am following up with operations to see if any updates have been applied. But don't believe any have been done in several weeks.

The server is also a Team Foundation Server and some of these sites are Project Portals. This error is occuring with IE6, IE7, and IE8. I have checked my settings and all scripting for this Trusted Site are enabled. The issue still presists. Has anyone else encounter this issue?

Thank you in advance

Will Piedmont

Customize Rich Text Editor in SharePoint 2010


I tried to customize the Rich Text Editor (HTML Editor, Content Editor) in SharePoint 2010. How can I replace the default styles with my own styles in the following Dropdowns of the editor:

  • Fonts
  • Styles
  • Markup Styles
  • Tabel

 I tried also the PrefixStyleSheet-Property but I don't figured out the correct style definition - the Dropdows were empty.

<PublishingWebControls:RichHtmlField id="Content" FieldName="PublishingPageContent" runat="server" PrefixStyleSheet="PageContentStyle"/>

I found some informations but nothing works.

Employee Training Export event and remove rich text editor

I have couple of problems with employee training template.

There is an export event on this template to your calendar. You can click on this button ( export event) and you can save this ics file on to your outlook calendar. Can I anyhow change the text of this "export event" text to something else. I went to sharepoint desinger and it doesnt even have export event listed there.. just dll.. and when I do view source on the page i see under HTML.. but How can i change this?


When someone is trying to add a new course we would like to users to not have capibility of changing fonts/ etc.. When you enter course desciption rich text editor gets enabled... on top. Is tehre a way to disable this for this template or specific sites?

Please help

Thank you

Background on html/rich text editor in content editor web part?


Hi All,

Does anyone know what in the CSS controls the background of the rich text/html editor in the Content Editor Web Part?  Mine is picking up the background of my page layout so I must have accidentally changed it somewhere, I'm just not sure where...


Rich text field error in web-form



I have a few rich text fields in a browser enabled infopath 2010 form. When I tried to submit it an error apppeared.

Retrieving the COM class factory for component with CLSID {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} failed due to the following error: 80040154. System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} failed due to the following error: 80040154.
at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventRichTextChange.HtmlToCleanXHtml(String html, Boolean makeDomCompatible)


I deleted all rich text fields the form was submitted successfully.

Is this a bug of Infopath 2010? Is any ways to use rich text fields?


Best Regards,



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend