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 Kristen:
http://wiki.apache.org/lenya/HowToIntegrateFCKEditor

------------------------------------------------------------------------------
  
  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, asset upload and insertion, and link creation.  
However, validation still needs to be implemented when saving.  And we've only 
tried this with FCKeditor 2.1 and Lenya 1.2.3/1.2.4.  Full credit for all this 
goes to K. Haenni.
  
- 1. Make sure that Fred (the FCK Editor) is in the 
`lenya/webapp/lenya/resource/fckeditor` directory.  This can be downloaded from 
http://www.fckeditor.net/.  Remove any unnecessary folders and files in the 
fckeditor directory (anything that begins with an “_”).
+ 1. Make sure that Fred (the FCK Editor) is in the 
`lenya/webapp/lenya/resources/fckeditor` directory.  This can be downloaded 
from http://www.fckeditor.net/.  Remove any unnecessary folders and files in 
the fckeditor directory (anything that begins with an “_”).
  
  2. Create a new javascript file in `lenya/webapp/lenya/resources/fckeditor` 
called `invokeEditor.js` with the following contents:
  
@@ -41, +41 @@

  }
  }}}
  
- 3. Add the following to `lenya/webapp/lenya/resources/fckeditor/fckconfig.js` 
after the line `FCKConfig.ImageDlgHideAdvanced` (around line 105):
+ 3. Add the following to `lenya/webapp/lenya/resources/fckeditor/fckconfig.js` 
after the line `FCKConfig.ImageDlgHideAdvanced` (around line 112):
  
  {{{
  // Need to get the publication id and doc id from the cookie.
@@ -200, +200 @@

  d. Replace `<map:match type="step" pattern="open">` usecase step with the 
following:
  
  {{{
-   <map:match type="step" pattern="open">
+ <map:match type="step" pattern="open">
-     <!-- Check for FCK Editor -->
+        <!-- Check for FCK Editor -->
-         <map:act type="resource-exists" 
src="../../resources/fckeditor/fckeditor.js">
+        <map:act type="resource-exists" 
src="../../resources/fckeditor/fckeditor.js">
-             <map:act type="reserved-checkout">
+         <map:act type="reserved-checkout">
-                 <map:generate type="serverpages" 
src="../../content/rc/{exception}.xsp">
+           <map:generate type="serverpages" 
src="../../content/rc/{exception}.xsp">
-                           <map:parameter name="user" value="{user}"/>
+             <map:parameter name="user" value="{user}"/>
-                           <map:parameter name="filename" value="{filename}"/>
+             <map:parameter name="filename" value="{filename}"/>
-                           <map:parameter name="date" value="{date}"/>
+             <map:parameter name="date" value="{date}"/>
-                           <map:parameter name="message" value="{message}"/>
+             <map:parameter name="message" value="{message}"/>
-                 </map:generate>
+           </map:generate>
-                 <map:transform src="../../xslt/rc/rco-exception.xsl"/>
+           <map:transform src="../../xslt/rc/rco-exception.xsl"/>
-                 <map:call resource="style-cms-page"/>
+           <map:call resource="style-cms-page"/>
-             </map:act>
+         </map:act>
-             <map:aggregate element="fckeditor">
+         <map:aggregate element="fckeditor">
-                 <map:part src="../../resources/misc/fckeditor/index.xhtml"/>
+           <map:part src="../../resources/misc/fckeditor/index.xhtml"/>
-                 <map:part 
src="../../pubs/{page-envelope:publication-id}/content/authoring/{page-envelope:document-path}"/>
+           <map:part 
src="../../pubs/{page-envelope:publication-id}/content/authoring/{page-envelope:document-path}"/>
-                 <map:part 
src="../../resources/misc/fckeditor/content-namespaces.xml"/>
+           <map:part 
src="../../resources/misc/fckeditor/content-namespaces.xml"/>
-             </map:aggregate>
+         </map:aggregate>
-             <map:transform src="../../xslt/fckeditor/aggregate.xsl"/>
+         <map:transform src="../../xslt/fckeditor/aggregate.xsl">
+               <map:parameter name="docname" 
value="{page-envelope:document-name}"/>
+           </map:transform>
-             <map:transform src="../../xslt/util/strip_namespaces.xsl"/>
+         <map:transform src="../../xslt/util/strip_namespaces.xsl"/>
+         <map:transform src="../../xslt/fckeditor/change-image-path.xsl">
+               <map:parameter name="publicationid" 
value="{page-envelope:publication-id}"/>
+       </map:transform>
-             <map:serialize type="xhtml"/>
+         <map:serialize type="xhtml"/>
          </map:act>
          <map:generate src="../../resources/misc/bxeng/download.xhtml"/>
          <map:call resource="style-cms-page"/>
          <map:serialize type="html"/>
-     </map:match>
+       </map:match>
  
  }}}
  
@@ -391, +396 @@

  </xsl:stylesheet>
  }}}
  
- e. Add a new xsl file called saveContent.xsl.  It should look like the 
following:
+ e. Add a new xsl file called savedContent.xsl.  It should look like the 
following:
  
  {{{
  <?xml version="1.0"?>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to