How to configure FCKeditor?

24 views
Skip to first unread message

Steve

unread,
Feb 11, 2008, 12:01:49 AM2/11/08
to GWT Rich-Text Editor
When FCKeditor is loaded from a plain HTML page, it can be configured
with simple Javascript like this:

var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.Config["CustomConfigurationsPath"] = "../path/to/my/
config.js";
oFCKeditor.Create() ;

This causes FCKeditor to load my configuration file after its
configuration file, so that I can override default settings as
needed. How can I accomplish the same thing when FCKeditor is used in
a page created with GWT?

Thanks,
Steve

Pavel

unread,
Feb 11, 2008, 10:50:35 AM2/11/08
to gwt-rich-t...@googlegroups.com
If you're refering to
http://code.google.com/p/gwt-html-editor/source/browse/branches/gwt1.4/src/com/gc/gwt/wysiwyg/client/fck/FCKEditor.java
then it currently does not have this property in FCKEditorConfig. But,
it should definitely be there. I'll try to add it ASAP. So you would do
something like this:

FCKEditor editor = new FCKEditor(new FCKEditorConfig() {
{
...
setCustomConfigurationsPath("../path/to/my/config.js");
}
});

Pavel

Steve

unread,
Feb 14, 2008, 12:12:21 AM2/14/08
to GWT Rich-Text Editor
Thanks! I didn't realize that this would require a code change - I
thought there would be a way to do it in Editor.gwt.xml.

-Steve

On Feb 11, 7:50 am, Pavel <pave...@gmail.com> wrote:
> If you're refering tohttp://code.google.com/p/gwt-html-editor/source/browse/branches/gwt1....

Pavel

unread,
Feb 14, 2008, 1:32:20 PM2/14/08
to gwt-rich-t...@googlegroups.com
No problem. The updated version is available in SVN.

Pavel

Reply all
Reply to author
Forward
0 new messages