Hello,

I have been working in the last 2 years on a CMS system using Tapestry
and used first TextArea and then FCKEditor. 

The FCKEditor was not very complicated even if the encapsulation was not
very tight with Tapestry:

<span jwcid="@Script" script="/ro/nit/components/fckeditor.script"
textArea="paraedit" pageId="ognl:paragraph.component.page.id"
        basePath="ognl:global.basePath"
basePathPrefix="ognl:global.basePathPrefix"/>

<textarea id="paraedit" jwcid="@TextArea"
                        rows="40" value="ognl:paragraph.content"
style="width:800px"/>

and the script is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script PUBLIC
        "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
        "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>
<script>
  <body>
<![CDATA[

// --></script>
<script language="JavaScript" type="text/javascript"
src="FCKeditor/fckeditor.js"></script>
<script language="JavaScript"><!--

function initEditor(){
    var sBasePath = '${basePathPrefix}FCKeditor/' ;
        var oFCKeditor = new FCKeditor( '${textArea}' );
    oFCKeditor.ToolbarSet = 'Alciweb';
    //oFCKeditor.ToolbarSet = 'AlciwebStrict';
    oFCKeditor.Height = 350;
    oFCKeditor.Config['AutoDetectLanguage'] = false;
    oFCKeditor.Config['DefaultLanguage'] = 'fr';
    oFCKeditor.Config['ImageBrowserWindowWidth'] = 400;
    oFCKeditor.Config['ImageBrowserWindowHeight'] = 500;
    oFCKeditor.Config['ImageBrowserURL'] =
'${basePath}?service=external/ImageSelect&sp=l${pageId}';
    oFCKeditor.Config['LinkBrowserWindowWidth'] = 500;
    oFCKeditor.Config['LinkBrowserWindowHeight'] = 600;
    oFCKeditor.Config['LinkBrowserURL'] =
'${basePath}?service=page/FckPageSelect';
    oFCKeditor.Config['EditorAreaCSS'] = '/nit/template/user.css';
        oFCKeditor.BasePath     = sBasePath ;
        oFCKeditor.ReplaceTextarea() ;
}

]]>
  </body>
  <initialization>
      initEditor();
  </initialization>
</script>

This was about it corelated with the development of the pages required
for selecting an image and a link.

Is this what you are searching for?

Len
http://www.len.ro


On Fri, 2006-12-01 at 10:50 +0100, Cyrille37 wrote:

> Hello,
> 
> Has someone integrated some Wysiwyg editors with Tapestry like FCKEditor 
> (www.fckeditor.net/), xstandard (www.xstandard.com), RTE 
> (www.kevinroth.com/rte/), TinuMCE (tinymce.moxiecode.com/) ?
> Any experience and comment are wellcome.
> 
> Have a nice day,
> cyrille
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
  • wysiwyg editor Cyrille37
    • Re: wysiwyg editor, FCKEditor Marilen Corciovei

Reply via email to