# \[ANN\] radiant-fckeditor 0.5 WYSIWYG Editor released

**URL:** <https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701>\
**Category:** Radiant CMS\
**Created:** [June 6, 2008, 6:20am UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701 "2008-06-06T06:20:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 6:20am UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/1 "2008-06-06T06:20:08Z")

</div>

Folks,

The existing FCKEditor plugin was out of date, so I spent a bunch of  
time creating a new FCKEditor plugin, with the goal of making a  
full-featured WYSIWYG page part editor that can easily be used. . .or  
not. It can be added/removed at will from page parts.

Please see the page below for requirements and installation  
instructions.

> **[GitHub - djcp/radiant-fckeditor: FCKEditor for the Radiant CMS](https://github.com/djcp/radiant-fckeditor/tree/master)**
>
> master

It has working file upload integration, is pretty good about not messing  
with your Radius tags and you can switch between it and other filters  
via the default “Filter” select menu.

I have tested on Firefox 2.0, IE 7 and Safari 3.1. It could use some  
more testing - of course - but it should work on every browser FCKEditor  
does. It’s based on FCKEditor 2.5 and some of Scott Rutherford’s plugin  
at:  
[http://blog.caronsoftware.com/2008/2/6/fckeditor-plugin-0-4-3-released](http://blog.caronsoftware.com/2008/2/6/fckeditor-plugin-0-4-3-released)

It requires Shards, and I’ve tested it on 0.6.6, 0.6.7 and “edge”  
Radiant.

It is vulnerable to the “multiple partial injection in 0.6.7 dev mode”  
bug, so if you see more than one FCKEditor in a page part, that’s the  
problem. Run in production mode, or upgrade 0.6.7 to the latest Radiant  
from github.

The future:

- An admin tab that allows toolbar button customizations,
- Integration with scripts\_n\_styles to auto-populate the CSS class  
drop-down,
- Integration with the PageAttachments plugin,
- Integration with the Link Browser API to allow for point-and-click  
in-page linking,
- You tell me!

Thanks! For now, kudos, suggestions, and bug reports can go to dan at  
endpoint dot com.

–DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 6:25am UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/2 "2008-06-06T06:25:17Z")

</div>

Daniel Collis-puro wrote:

> Folks,
> 
> The existing FCKEditor plugin was out of date, so I spent a bunch of  
> time creating a new FCKEditor plugin,

Sigh. It’s late. And it’s an extension, not a plugin.

–DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/3 "2008-06-06T20:14:14Z")

</div>

Josh S. wrote:

> I had trouble running the rake radiant:extensions:fckeditor:update task.
> 
> It copied a bunch of files until this error:
> 
> No such file or directory - …/radiant/vendor/extensions/fckeditor/  
> public/javascripts/fckcustom.js
> 
> From the looks of it, the only thing in this fckeditor/public/  
> javascripts folder is another folder called fckeditor.
> 
> I’ve looked at the rake task, but it’s not immediately apparent to me  
> what should be done, anyone have any suggestions?
> 
> Regards,  
> Josh

Josh,

Sorry about that.

In the file:

vendor/extensions/fckeditor/lib/fckeditor\_file\_utils.rb

comment out lines 70 and 71, the “copy\_configuration” lines.

Or just wait a couple minutes for me to get my fix on github and clone  
it again.

Again, I apologize.

-DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/4 "2008-06-06T20:37:18Z")

</div>

Thanks, I got it all setup. You mentioned in the README that you want  
to provide an interface to change the default toolbar, if I wanted to  
do it manually for now where would I do it?

I think I just need to do: FCKConfig.toolbarSetName = “Basic”; in  
fckconfig.js.

Is that correct?

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/5 "2008-06-06T20:39:49Z")

</div>

This has been fixed, details at:

> <https://github.com/djcp/radiant-fckeditor/commit/6f601b0b1089eec5ef6cca06c7a9728f79511760>

You should be able to “git pull” from the fckeditor extension directory  
and run the “rake radiant:extensions:fckeditor:update” task again.

Thanks for hanging in there.

–DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/6 "2008-06-06T19:59:41Z")

</div>

I had trouble running the rake radiant:extensions:fckeditor:update task.

It copied a bunch of files until this error:

No such file or directory - …/radiant/vendor/extensions/fckeditor/  
public/javascripts/fckcustom.js

From the looks of it, the only thing in this fckeditor/public/  
javascripts folder is another folder called fckeditor.

I’ve looked at the rake task, but it’s not immediately apparent to me  
what should be done, anyone have any suggestions?

Regards,  
Josh

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/7 "2008-06-06T20:43:48Z")

</div>

Josh S. wrote:

> Thanks, I got it all setup. You mentioned in the README that you want  
> to provide an interface to change the default toolbar, if I wanted to  
> do it manually for now where would I do it?
> 
> I think I just need to do: FCKConfig.toolbarSetName = “Basic”; in  
> fckconfig.js.
> 
> Is that correct?

Nope, you’d edit the config.js.erb view at:

$FCKEDITOR\_EXTENSION\_ROOT/app/views/fckeditor/config.js.erb

and make your changes there. The FCKEditor config file is emitted from  
that view.

–DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/8 "2008-06-06T21:48:22Z")

</div>

Josh S. wrote:

> Sorry to keep going this thread going, but I’ve changed that file, but  
> it stills appears to be pulling the Default toolbar set. Do I need to  
> regenerate the configs with rake task? In fact, I’m not even seeing  
> the “simple” toolbar you have setup, although I do have a link for  
> config?class\_name=Page.
> 
> Josh

No, that’s OK. I appreciate it, as it helps me to know what areas are  
rough or might be good places to expand.

The “Simple” toolbar in config.js.erb is only in there as an example,  
the editor is using the default toolbar.

And (I had to refresh my memory here) the way it works is you define the  
toolbars in the config and then associate them with an FCKEditor  
instance when the object is created in Javascript. Currently I don’t  
specify a toolbar for the editor, so it’s picking up the default one.

You can just change the name of the toolbar in the view to:  
FCKConfig.ToolbarSets[“Default”]  
and customize it then. It will take effect, I just tested it.

All this config tomfoolery will go away when I build the admin tab.

Any other thoughts?

–DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [June 6, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/ann-radiant-fckeditor-0-5-wysiwyg-editor-released/139701/9 "2008-06-06T21:28:02Z")

</div>

Sorry to keep going this thread going, but I’ve changed that file, but  
it stills appears to be pulling the Default toolbar set. Do I need to  
regenerate the configs with rake task? In fact, I’m not even seeing  
the “simple” toolbar you have setup, although I do have a link for  
config?class\_name=Page.

Josh
