[opencms-dev] Upgrading FCK Editor in older version of OpenCms
Dylan Milks
DMilks at greenridge.ca
Thu Feb 4 18:49:04 CET 2010
Thank you. This helps a lot.
- Dylan
-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Schliemann, Kai
Sent: Thursday, February 04, 2010 11:07 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Upgrading FCK Editor in older version of OpenCms
Hi Dylan,
no, but I try a simple translation:
This update is for FCKEditor version 2.2 to 2.4.2 within OpenCms 6.2.1
1. Prerequisites
All editor files are installed in the following directories:
/system/workplace/editors/fckeditor/
/system/workplace/resources/editors/fckeditor/
/system/workplace/resources/components/widgets/fckeditor.js
/system/modules/org.opencms.editors.fckeditor/
The source code is in
/system/workplace/resources/editors/fckeditor/
1.1 synchronize this directory to your hard drive.
This directory ist he equvilalent oft he directory
/fckeditor/
in the original FCKeditor package.
1.2 Unzip original FCKeditor package.
2. copy source code
2.1 copy all files and subdirectories of fckeditor of the original FCKeditor package into the directory /system/workplace/resources/editors/fckeditor/.
Doing that I used a diff programme (BeyondCompare) and copied only files which had no customer related changes.
For files with customer related changes
• /system/workplace/resources/editors/fckeditor/editor/_source/internals/
fckcommands.js
• /system/workplace/resources/editors/fckeditor/editor/_source/classes/
fcktoolbarfontformatcombo.js
• /system/workplace/resources/editors/fckeditor/editor/fckconfig.js
I copy and pasted the new source code into the old files and overwrite the old code. I left out customer related changes.
2.2 After the copy action
• synchronize local directory with OpenCms-VFS
• publish system/workplace
• reinitialize workplace
• clear Flexcache
• clear Browsercache
• restart Tomcat
3. Skins
The new FCKEditor does not use the directory
/system/workplace/resources/editors/fckeditor/editor/skins/skin-xy/toolbar anymore.
All Icons are included in /system/workplace/resources/editors/fckeditor/editor/skins/skinxy/fck_strip.gif. If you need more icons, which do not belong to the default skin, you can copy those icons to the toolbar directory. If not, the toolbar directory can be deleted.
Therefore you can delete all icons in /system/workplace/resources/editors/fckeditor/editor/skins/opencms/toolbar/, which are not OpenCms specific. So just keep files named oc-...
You have to change the size of the oc-icons from 21x21 to 16x16. Don’t make them smaller but crop them.
4. Shortcuts
With the new version of FCKEditor you can use keyboard shortcuts. If you removed icons from the toolbar you should as well remove the shortcuts.
Do this in /system/workplace/resources/editors/fckeditor/fckconfig.js directly below the entry FCKConfig.Keystrokes by commenting out the following row.
I hope this translation helps you a little bit more, than the german version. ☺
Regards
Kai
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
---------------------------------------------------------------------------------
The contents of this communication, including any attachment(s), are
confidential and may be privileged. If you are not the intended recipient (or
are not receiving this communication on behalf of the intended recipient),
please notify the sender immediately and delete or destroy this communication
without reading it, and making, forwarding or retaining any copy or record of it
or its contents. Thank you.
More information about the opencms-dev
mailing list