SharePoint 2007 HTML Editor Issue
I recently came across a problem with the HTML Editor in SharePoint Server 2007.
An error message appears when editing text.
The error message displayed is: "RTE_ToggleEnableShortcuts" is undefined.
The patch level of the MOSS environment was12.0.6331
The "RTE_ToggleEnableShortcuts" can be found in the ***_HtmlEditor.js file located under the “\TEMPLATE\LAYOUTS\LCID” folder in the 12 hive.
There is such a file for all deployed language packs as well, additional foldersd are created for each LCID.
The installation language being English, the default file is “1033\HtmlEditor.js”
The first line of this file indicates which LCID uses the file and the patch level the file is related to.
File |
_lcid |
_version |
Patch level |
HtmlEditor.js |
1031 |
12.0.6211 |
SP1 |
HtmlEditor.js |
1033 |
12.0.6331 |
Dec. CU |
HtmlEditor.js |
1036 |
12.0.6211 |
SP1 |
HtmlEditor.js |
1043 |
12.0.6211 |
SP1 |
Here is the exact content of the “Coreservermui-en-us.msp” file which is deployed with the December Cumulative Update for MOSS:
File name |
File version |
File size |
Date |
Time |
Platform |
Cmssitemanager.js |
Not Applicable |
52,517 |
22-Jan-2008 |
22:31 |
Not applicable |
Editingmenu.js |
Not Applicable |
11,844 |
22-Jan-2008 |
22:30 |
Not applicable |
Htmleditor.js |
Not Applicable |
289,410 |
15-Oct-2008 |
23:08 |
Not applicable |
Microsoft.office.server.search.intl.resources.dll |
12.0.6300.5000 |
349,216 |
13-Dec-2007 |
20:56 |
Not applicable |
Ms.mss.hc.cab |
Not Applicable |
284,389 |
19-Mar-2008 |
11:04 |
Not applicable |
Ms.oss.admin.hc.cab |
Not Applicable |
438,535 |
24-Mar-2008 |
22:10 |
Not applicable |
Mssmsg.dll |
12.0.6300.5000 |
228,896 |
13-Dec-2007 |
20:56 |
Not applicable |
Notessetup.exe |
12.0.6300.5000 |
202,272 |
13-Dec-2007 |
20:56 |
Not applicable |
Pickertreedialog.js |
Not Applicable |
2,284 |
22-Jan-2008 |
22:31 |
Not applicable |
Portal.css |
Not Applicable |
35,301 |
25-Mar-2008 |
13:57 |
Not applicable |
Search.js |
Not Applicable |
26,550 |
06-Sep-2006 |
16:59 |
Not applicable |
Searchadmin.en-us.resx |
Not Applicable |
65,280 |
25-Mar-2008 |
13:36 |
Not applicable |
Searchdatadb.sql |
Not Applicable |
341,757 |
25-Mar-2008 |
13:36 |
Not applicable |
Searchdatadbupgrade.sql |
Not Applicable |
180,501 |
25-Mar-2008 |
13:36 |
Not applicable |
Searchdb.sql |
Not Applicable |
343,260 |
25-Mar-2008 |
13:36 |
Not applicable |
Searchdbupgrade.sql |
Not Applicable |
191,402 |
25-Mar-2008 |
13:36 |
Not applicable |
Spellchecker.js |
Not Applicable |
37,676 |
07-Oct-2008 |
22:28 |
Not applicable |
Sps.en-us.resx |
Not Applicable |
76,544 |
25-Mar-2008 |
13:56 |
Not applicable |
Spscore.en-us.resx |
Not Applicable |
85,536 |
25-Mar-2008 |
13:57 |
Not applicable |
Webtempsrch.xml |
Not Applicable |
1,131 |
25-Mar-2008 |
13:37 |
Not applicable |
It explains why different versions of the file are present, only the default language file will be update by applying the December Cumulative Update.
Resolution
- Replace the file “c:\program files\common files\microsoft shared\web server extensions\12\template\layouts\any_lcid\HtmlEditor.js” with the same file from 1033
version. - Additionally, you could realign all servers in the farm, including language packs by deploying WSS/MOSS SP2 and Language Packs for SP2. References can be found in the next section.
Comments
- Anonymous
May 24, 2013
The comment has been removed