Forum: Ruby on Rails Customising FCKeditor

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
JJ (Guest)
on 2006-03-11 02:12
I would like to customise my FCKeditor-instance so that when the "add
image" button is pressed, it opens my own add_image popup.

In this popup i would handle the image upload/image browser/etc. tasks
with rails.

How can I open the popup and pass the picture information from there
back to FCKeditor's textarea?
Aneesha Bakharia (Guest)
on 2006-03-11 04:35
(Received via mailing list)

I have done something similar and used the plugin architecture in
Some documentation is available within the fck download. There is even
example on customising the toolbar and including an icon for a new
I'd suggest you look at the code of existing plugins that come with

The plugin tracker on Sourceforge may also be useful:

JJ (Guest)
on 2006-03-11 14:14
Thanks, I got a lot further.

One questions still stands:

How can I reference the fckeditor instance from the pop-up window?
I tried "Example on how to access the editor from a popup window" from
this page: but
no success.

In that example the editor is referenced like this :
var FCK = window.opener.FCK;

Is the FCK the name of the FCKeditor-instance?

I have added the editor like the tutorial here shows:

def fckeditor_text_field(object, method, options = {})
	    text_area(object, method, options ) +
	    javascript_tag( "var oFCKeditor = new FCKeditor('" + object + "[" +
            method + "]');oFCKeditor.ReplaceTextarea()" )

<%= fckeditor_text_field("news_item", "body")  %>
This topic is locked and can not be replied to.