ah cool, thanks for this doug.
i did almost the same :)
now i tried to implement the image look up. but its not finished yet. it
basicly works but the images do not show up in the fckeditor because of
relative images paths. but befor i'm going furhter i would like to know
if you also started on this. and maybe allready have a solution for
it ;)
otherwise i would like to fill a bug for that and post a patch.

simon

On Fre, 2006-02-03 at 17:34 -0500, Doug Chestnut wrote:
> [EMAIL PROTECTED] wrote:
> > Author: chestnut
> > Date: Fri Feb  3 14:33:25 2006
> > New Revision: 374765
> > 
> > URL: http://svn.apache.org/viewcvs?rev=374765&view=rev
> > Log:
> > One Form Editor Module
> Opps, meant to say:
> FCKEditor Module
> 
> > -Simply uses the One Form Editor usecase
> > -You need to add the FCKeditor directory to the resources directory due to 
> > license
> > -I have only tested the ability to open, slight edit, and save of the 
> > tutorial page of the default pub (it worked :) )
> > -http://localhost:8888/default/authoring/tutorial.html?lenya.usecase=edit.fckeditor
> > 
> > Added:
> >     lenya/trunk/src/modules/fckeditor/
> >     lenya/trunk/src/modules/fckeditor/config/
> >     lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/
> >     
> > lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/usecases-edit-fckeditor.xconf
> >    (with props)
> >     lenya/trunk/src/modules/fckeditor/resources/
> >     lenya/trunk/src/modules/fckeditor/sitemap.xmap   (with props)
> >     lenya/trunk/src/modules/fckeditor/usecases/
> >     lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx
> > 
> > Added: 
> > lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/usecases-edit-fckeditor.xconf
> > URL: 
> > http://svn.apache.org/viewcvs/lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/usecases-edit-fckeditor.xconf?rev=374765&view=auto
> > ==============================================================================
> > --- 
> > lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/usecases-edit-fckeditor.xconf
> >  (added)
> > +++ 
> > lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/usecases-edit-fckeditor.xconf
> >  Fri Feb  3 14:33:25 2006
> > @@ -0,0 +1,10 @@
> > +<?xml version="1.0"?>
> > +<xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/[EMAIL PROTECTED] 
> > = 'edit.fckeditor']">
> > +
> > +  <component-instance name="edit.fckeditor" logger="lenya.publication"
> > +                      
> > class="org.apache.lenya.cms.editors.forms.OneFormEditor">
> > +    <transaction policy="pessimistic"/>
> > +    <view template="modules/fckeditor/usecases/fckeditor.jx" menu="false"/>
> > +  </component-instance>
> > +    
> > +</xconf>
> > \ No newline at end of file
> > 
> > Propchange: 
> > lenya/trunk/src/modules/fckeditor/config/cocoon-xconf/usecases-edit-fckeditor.xconf
> > ------------------------------------------------------------------------------
> >     svn:eol-style = native
> > 
> > Added: lenya/trunk/src/modules/fckeditor/sitemap.xmap
> > URL: 
> > http://svn.apache.org/viewcvs/lenya/trunk/src/modules/fckeditor/sitemap.xmap?rev=374765&view=auto
> > ==============================================================================
> > --- lenya/trunk/src/modules/fckeditor/sitemap.xmap (added)
> > +++ lenya/trunk/src/modules/fckeditor/sitemap.xmap Fri Feb  3 14:33:25 2006
> > @@ -0,0 +1,45 @@
> > +<?xml version="1.0" encoding="UTF-8"?>
> > +<!--
> > +  Copyright 1999-2004 The Apache Software Foundation
> > +
> > +  Licensed under the Apache License, Version 2.0 (the "License");
> > +  you may not use this file except in compliance with the License.
> > +  You may obtain a copy of the License at
> > +
> > +      http://www.apache.org/licenses/LICENSE-2.0
> > +
> > +  Unless required by applicable law or agreed to in writing, software
> > +  distributed under the License is distributed on an "AS IS" BASIS,
> > +  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > +  See the License for the specific language governing permissions and
> > +  limitations under the License.
> > +-->
> > +
> > +<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
> > +
> > +<!-- =========================== Components 
> > ================================ -->
> > +
> > +  <map:components>
> > +  
> > +    <map:serializers default="xhtml"> 
> > +      <map:serializer name="xml-get" 
> > src="org.apache.cocoon.serialization.XMLSerializer" mime-type="text/xml">
> > +        <encoding>utf-8</encoding>
> > +        <omit-xml-declaration>yes</omit-xml-declaration>
> > +      </map:serializer>
> > +    </map:serializers>
> > + 
> > +  </map:components>
> > +
> > +  <map:pipelines>
> > +
> > +    <map:pipeline>
> > +
> > +      <map:match pattern="content">
> > +        <map:generate 
> > src="lenyadoc:/{page-envelope:document-language}/{page-envelope:document-id}"/>
> > +        <map:serialize type="xml-get"/>
> > +      </map:match>
> > +
> > +    </map:pipeline>
> > +    
> > +  </map:pipelines>
> > +</map:sitemap>
> > 
> > Propchange: lenya/trunk/src/modules/fckeditor/sitemap.xmap
> > ------------------------------------------------------------------------------
> >     svn:eol-style = native
> > 
> > Added: lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx
> > URL: 
> > http://svn.apache.org/viewcvs/lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx?rev=374765&view=auto
> > ==============================================================================
> > --- lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx (added)
> > +++ lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx Fri Feb  3 
> > 14:33:25 2006
> > @@ -0,0 +1,80 @@
> > +<page:page
> > +  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";
> > +  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0";
> > +  xmlns="http://www.w3.org/1999/xhtml";
> > +  xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
> > +  xmlns:cinclude="http://apache.org/cocoon/include/1.0";
> > +  >
> > +  
> > +  <script type="text/javascript" 
> > src="/modules/fckeditor/FCKeditor/fckeditor.js">&#160;</script>
> > +  <script type="text/javascript">
> > +
> > +    window.onload = function()
> > +    {
> > +           var oFCKeditor = new FCKeditor( 'content' ) ;
> > +           oFCKeditor.BasePath     = '/modules/fckeditor/FCKeditor/' ;
> > +           oFCKeditor.Width="100%";
> > +           oFCKeditor.Height="100%";
> > +           oFCKeditor.Config[ "FullPage" ] = true ;
> > +           oFCKeditor.ReplaceTextarea() ;
> > +
> > +    }
> > +
> > +  </script>
> > +  
> > +   <page:title>FCKeditor - Sample</page:title>
> > +
> > +   <page:body>
> > +           <jx:import 
> > uri="fallback://lenya/usecases/templates/messages.jx"/>
> > +
> > +
> > +            <jx:choose>
> > +              <jx:when test="${! usecase.hasErrors()}">
> > +          
> > +                <div class="lenya-box">
> > +                  <div class="lenya-box-title">Information</div>
> > +                  <div class="lenya-box-body">
> > +                    <table class="lenya-table-noborder">
> > +                      <tr>
> > +                        <td class="lenya-entry-caption">Document:</td>
> > +                        <td><jx:out 
> > value="${usecase.getParameter('document').getId()}"/></td>
> > +                      </tr>
> > +                      <tr>
> > +                        <td class="lenya-entry-caption">Workflow 
> > Event:</td>
> > +                        <jx:set var="event" 
> > value="${request.getParameter('lenya.event')}"/>
> > +                        <jx:choose>
> > +                          <jx:when test="${event.equals('') || 
> > event.equals('null')}">
> > +                            <td>No workflow event specified</td>
> > +                          </jx:when>
> > +                          <jx:otherwise>
> > +                            <td><jx:out value="${event}"/></td>
> > +                          </jx:otherwise>
> > +                        </jx:choose>
> > +                      </tr>
> > +                    </table>
> > +                  </div>
> > +                </div>
> > +          
> > +              <form method="post" >
> > +            <input type="hidden" name="lenya.continuation" 
> > value="${continuation.id}"/>
> > +            <input type="hidden" name="lenya.usecase" 
> > value="${usecase.getName()}"/>               
> > +            <input name="namespaces" type="hidden" value=" 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/
> xh
> >  tml&quot; xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xh
> tm
> >  l&quot; xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";; 
> > xmlns=&quot;http://www.w3.org/1999/xhtml";"; />
> > +                       <div>
> > +                               <textarea id="content" name="content" 
> > style="WIDTH: 100%; HEIGHT: 200px">
> > +                      <cinclude:includexml>
> > +                        
> > <cinclude:src>cocoon://modules/fckeditor/content</cinclude:src>
> > +                      </cinclude:includexml>               
> > +                               </textarea>
> > +                       </div>
> > +                       <br />
> > +                       <input name="submit" type="submit" value="Save" />
> > +                 </form>
> > +                
> > +              </jx:when>
> > +              <jx:otherwise>
> > +                <input type="submit" name="cancel" value="Cancel"/>
> > +              </jx:otherwise>
> > +            </jx:choose>
> > +                                   
> > +   </page:body>
> > +</page:page>
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
Simon Litwan                               [EMAIL PROTECTED]
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org


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

Reply via email to