Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by BobHarner: http://wiki.apache.org/lenya/HowToIntegrateFCKEditor The comment on the change is: Minor clarification ------------------------------------------------------------------------------ This is still very much a work in progress. This will get the famous FCKeditor (which we have nicknamed "Fred" to reduce snickering) to load with content, save the content, and link to assets. However, validation still needs to be implemented when saving, and the asset upload portion is not quite ready. We've only tried this with Lenya 1.2.3/1.2.4 and FCKeditor 2.0/2.11. Full credit for all this goes to K. Haenni. - 1. Download Fred (the FCK Editor) from http://www.fckeditor.net/. Extract the ZIP or tar file into `lenya/webapp/lenya/resources/. The ZIP or tar file will contain files starting with "FCKeditor/", so after extracting, rename "FCKeditor" to "fckeditor". + 1. Download Fred (the FCK Editor) from http://www.fckeditor.net/. Extract the ZIP or tar file into `lenya/webapp/lenya/resources/. The ZIP or tar file will contain files starting with a "FCKeditor/" directory, so after extracting, rename "FCKeditor" to "fckeditor". 2. Download [attachment:invokeEditor.js] into that same `lenya/webapp/lenya/resources/fckeditor` directory. @@ -23, +23 @@ var filemgr = '/fckeditor/filemanager/browser/default/browser.html'; }}} - IMPORTANT: Set filemgr (above) to start with your servlet context root (e.g. '/lenya/fckeditor/...') if you aren't using Jetty. + IMPORTANT: Set filemgr (above) to start with your servlet context root (e.g. '/lenya/fckeditor/...') if you aren't using Jetty or your servlet context is not "/". Then, modify the `LinkBrowserURL`, `ImageBrowserURL` and `FlashBrowserURL` values as follows: @@ -34, +34 @@ }}} - 4. Edit `lenya/webapp/lenya/resources/fckeditor/fckeditor.js` (near the top) to set the height and width of the editor: + 4. Edit `lenya/webapp/lenya/resources/fckeditor/fckeditor.js` as follows: + + a. Set the height and width of the editor (near the top) to: {{{ this.Width = width || '100%' ; @@ -45, +47 @@ this.Height = height || screen.height * 0.6; }}} + IMPORTANT: Also set `this.BasePath` to start with your servlet context root (e.g. '/lenya/fckeditor/...') if you aren't using Jetty or your servlet context is not "/". - also, if your servlet context is other than "/", edit fckeditor.js to set the `this.BasePath` value to include it: - - {{{ - this.BasePath = '/lenya/fckeditor/' ; - }}} 5. Download the following files to `lenya/webapp/lenya/resources/misc/fckeditor`: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
