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:
Added direct links to attachments in the page

------------------------------------------------------------------------------
  
  }}}  
  
- 11. Copy the attached `FredSaveAction.java` 
([:HowToIntegrateFCKEditor?action=AttachFile: attachments are here] ) as a new 
Action in `org.apache.lenya.cms.cocoon.acting` that saves the content to a 
temporary file.
+ 11. Copy the attached [attachment:FredSaveAction.class FredSaveAction.class] 
(source [attachment:FredSaveAction.java FredSaveAction.java]) to 
WEB-INF/classes/org/apache/lenya/cms/cocoon/acting/ to make a new Action that 
saves the content to a temporary file.
  
  This code is basically the same as 
`org.apache.lenya.cms.cocoon.acting.OneFormEditorSaveAction.java`, with a few 
modifications.  Validation needs to be added here.
  
- 12. Copy the attached `UploadFredAsset.java` as a new Action in 
`org.apache.lenya.cms.cocoon.acting`.
+ 12. Copy the attached [attachment:UploadFredAsset.class 
UploadFredAsset.class] (source [attachment:UploadFredAsset.java 
UploadFredAsset.java]) to WEB-INF/classes/org/apache/lenya/cms/cocoon/acting/ 
to make a new Action that uploads an asset to the page's asset directory.  When 
creating the Publication, one of the parameters required is the context.  Right 
now, this is hard coded.  I have yet to figure out a way to get this.  
Obviously, hard coding is not the solution - still working on this.  Thinking 
about putting the context in a properties files somewhere.  Most of this code 
was taken from the action 
`org.apache.lenya.cms.cocoon.acting.UploadAction.java` and modified to work 
with Fred.
  
+ To get Fred to work with all your pubs, you will need to copy 
`usecase-fckeditor.xmap` to each publication.  (Or can we put 
usecase-fckeditor.xmap into a lenya/usecases/fckeditor directory for all 
publications???)
- This code uploads an asset to the page's asset directory.  When creating the 
Publication, one of the parameters required is the context.  Right now, this is 
hard coded.  I have yet to figure out a way to get this.  Obviously, hard 
coding is not the solution - still working on this.  Thinking about putting the 
context in a properties files somewhere.  Most of this code was taken from the 
action `org.apache.lenya.cms.cocoon.acting.UploadAction.java` and modified to 
work with Fred.
- 
- To get Fred to work with all your pubs, you will need to copy 
`usecase-fckeditor.xmap` to each publication.  
  
  There are a lot of steps here, and this is still very much a work in 
progress, but should get the basics of Fred working.  In addition, I'm sure 
there's a better way to get the lenya tags in the document when saving rather 
than hard coding them in the xsl file. The `fckeditor-usecase.xmap` also needs 
to be cleaned up.  Any suggestions or comments are welcome!
  

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

Reply via email to