Hello Ted,

thanks for your reply.
I ended up with adding <s:richtexteditor> tag to struts-tags by
updating tld and copying necessary staff from webwork components and
jsp.ui packages. But Freemaker templates also need to be updated,
which is the most difficult, as richtexteditor.ftl itself references
<ww:> tags, and I need to find out how to change them to <s:>.

Yes, probably the component tag can be used to embed the editor, but
isn't it the same as to port webwork implementation? They also extend
Component class.

We used FCKeditor in our previous projects, and we need to add it to
the current one. Also, FCKeditor is far more feature rich than default
dojo textarea.

Regards,
Andrew Stepanenko,
Ternopil, UKRAINE

On 11/20/06, Ted Husted <[EMAIL PROTECTED]> wrote:
Isn't there a way to use the component tag to do that sort of thing?

* http://struts.apache.org/2.x/docs/component.html

-Ted.

On 11/19/06, Andrew Stepanenko <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've checked out how FCKeditor is integrated into webwork. They
> provide a tag ww:richtexteditor. But I'm not willing to modify struts2
> TLD and add my own tag, for ease of update to future versions. Is
> there any other way how to make the FCKeditor instance a part of
> <s:form>? Maybe some 'embed' mechanism, because currently the editor
> window is displayed above <s:form> rendered HTML.
>
> Thanks,
> Andrew.
>
> On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > Struts 2, in the original form of WebWork 2, used to use the FCKeditor
> > as its rich text editor.  Unfortunately, its license, LGPL IIRC, isn't
> > suitable for the ASF, so we replaced it with Dojo's rich text editor,
> > which is pretty good actually.  If you need to the FCKeditor, download
> > WebWork 2.2.4 and see how they did it.  Otherwise, you can use the
> > Dojo one built into Struts 2 with the textarea tag and theme "ajax".
> >
> > Don
> >
> > On 11/19/06, Andrew Stepanenko <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > did anybody try to integrate FCKeditor (http://www.fckeditor.net/)
> > > into a Struts2 <s:form> tag? Basically, I want to display in the
> > > FCKeditor instance the value of my action's property and later be able
> > > to save it to db in my action.
> > > FCKeditor has a JSP integration pack and can be invoked in a JSP by
> > > means of it's own tag library:
> > > <%@ taglib uri="http://fckeditor.net/tags-fckeditor"; prefix="FCK" %>
> > > ...
> > >
> > > <FCK:editor id="EditorDefault"
> > > basePath="/FCKeditor/"          
imageBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"      
linkBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"  
flashBrowserURL="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"      
imageUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
> > > 
linkUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
> > > 
flashUploadURL="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
> > >                                 This is some <strong>sample text</strong>. 
You are using <a
> > > href="http://www.fredck.com/fckeditor/";>FCKeditor</a>.
> > > </FCK:editor>
> > > ...
> > > The question is whether I need to customize struts-tags tag lib to
> > > integrate the editor with <s:form> (and how if yes) or may be there is
> > > a simpler way?
> > >
> > > You help is much appreciated.
> > >
> > > Regards,
> > > Andrew Stepanenko
> > >
> > > P.S. BTW, I was able to integrate FCKeditor with Struts 1 <html:form>
> > > in my previous project. The solution there was just to set the
> > > <FCK:editor> tag's id attribute with the name of Struts
> > > DynaValidatorForm property, and then in the Action it was possible to
> > > access that property's value.

---------------------------------------------------------------------
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]

Reply via email to