Integrating with FCKeditor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Integrating with FCKeditor

Kurt Thams
I'm trying to get Seaside to work with the javascript FCKeditor
(www.*fckeditor*.net) and I'm having a bit of confusion about how to
have the Seaside code pick up the results when someone edits a page
using FCKeditor.

The way FCKeditor works is that when a Submit is performed, the results
of the user's editing comes back in the POST variables.

What I can't figure out (and I'm sure it's obvious), is how to grab
those results inside Seaside.

Here's the Seaside code I have so far.


renderContentOn: html
    html scriptWithUrl: '/FCKeditor/fckeditor.js'.
    html
        form: [html
                submitButtonWithAction: []
                do: [:something | ].
            html script: '
var sBasePath = ''/FCKeditor/'' ;
var oFCKeditor = new FCKeditor( ''FCKeditor1'' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height   = 600 ;
oFCKeditor.Value    = ''This is some <strong>editable text<\/strong>.'' ;
oFCKeditor.Create() ;
'.
        ]
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Integrating with FCKeditor

Lukas Renggli
> The way FCKeditor works is that when a Submit is performed, the results
> of the user's editing comes back in the POST variables.

Register a value callback:

    name := html callbacks registerCallback: [ :value | ... ].

and tell FCKeditor to use "name" as the POST variable.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside