Matthew McDermott, MVP

General ramblings from a SharePoint MVP about SharePoint and Microsoft technologies related to collaboration, web content management and productivity.

Rich Text Editor Error - RTE2PUEditor.aspx

Today while working on an SP1 MOSS installation our content editor web part started raising an error on key down. The only difference that we could determine is that this build was part of a slipstream installation of MOSS rather than RTM, then WSS SP1 and MOSS SP1. It appears that the JavaScript files BFORM.JS and FORM.JS did not get updated by the service pack.

RTE2PUEditor

Internet Explorer Script Error
An error has occurred in the script on this page.
Line: 3032
Char: 2
Error: Object expected
Code: 0
URL: http://server/_layouts/RTE2PUEditor.aspx

After hours of searching I found this post: http://blog.mastykarz.nl/2008/04/14/javascript-error-while-entering-text-in-the-content-editor-web-part/. So I am re-posting in hopes that it will make finding the info easier for others.

The solution is to copy the JS files from a working SP1 server and copy them into \layouts\1033 and then start worrying about what else failed to update.

Posted by Matthew McDermott on Thursday, 3 Jul 2008 10:42
4 Comments | Filed under: SharePoint 2007
Bookmark this post with:        

Comments

On 04 Jul 2008 08:42, Pierre-Alexandre said:

It's also a commun error when you forget to install the wss language pack when you have only installed the moss language pack instead of both wss and moss language pack.

On 04 Aug 2008 03:20, Roi Kolbinger said:

I was the same problem and I fix it at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1037\HtmlEditor.js at function RTE2_OnKeyDown(strBaseElementID, elem) I add try-catch scope try { RTE_ToggleEnableShortcuts(evtSource); } catch (e) {} and it works... I hope help, Roi

On 04 Aug 2008 08:41, Matthew McDermott said:

The real resolution on this is to be sure that you have the Service Packs installed correctly. In one case we reinstalled SharePoint and then reapplied the service packs as we were seeing other strange behavior.

On 12 Aug 2008 09:07, BDavis said:

I encountered a similar error after installing KB951297. My error message however was "RTE_ToggleEnableShortcuts is undefined." To fix the issue, I modified ...\12\Template\Layouts\1033\HtmlEditor.js I commented out line 3031 where RTE_ToggleEnableShortcuts is called. I found another error and changed the IF statement in line 3107 that calls RTE_ShortcutsEnabled to "if (fCtrlKey)". This seems to resolve the issue and give me access to the RTF editor in the content editor webpart. Of course, I'm sure editing the js file is not the best answer, so do this at your own risk.

Leave a comment

Name (required)

Url

Email

Comments

Complete this section to post your comment