You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Doug Chestnut <dh...@virginia.edu> on 2006/02/06 19:29:22 UTC
Re: svn commit: r374765 - in /lenya/trunk/src/modules/fckeditor:
./ config/ config/cocoon-xconf/ config/cocoon-xconf/usecases-edit-fckeditor.xconf
resources/ sitemap.xmap usecases/ usecases/fckeditor.jx
Hi Simon,
simon wrote:
> ah cool, thanks for this doug.
no problem, just playing around, works nicely in IE :).
> 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 ;)
No, all I have done is what I committed. I was thinking about looking
at spell check, but it looks fairly easy for iespell (I think is the name).
> otherwise i would like to fill a bug for that and post a patch.
go for it ;)
--Doug
>
> simon
>
> On Fre, 2006-02-03 at 17:34 -0500, Doug Chestnut wrote:
>
>>chestnut@apache.org 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/component-instance[@name = '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"> </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="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/
>>
>>xh
>>
>>> tml" xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xh
>>
>>tm
>>
>>> l" xmlns="http://www.w3.org/1999/xhtml"; xmlns="http://www.w3.org/1999/xhtml"; xmlns="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: commits-unsubscribe@lenya.apache.org
>>>For additional commands, e-mail: commits-help@lenya.apache.org
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>For additional commands, e-mail: dev-help@lenya.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org