views:

20

answers:

1

I'm trying to place multiple CKEDITOR instances on the same page, each one loading a different config file. It works fine in FF, but in IE the config file from the last instance on the page is applied to all instances. Each instance has a unique base element name. I'm using the following code to add the instances, with the customConfig, width, and height values changing for each instance.

CKEDITOR.replace(   document.form1.elementName,
                                {
                                    customConfig : customConfigFile.js',
                                    width :   '500px',
                                    height: '200px'
                                }
);

What am I doing wrong? I can't just specify the settings from the config files on the page, because part of the config file is an oninstanceready call. The only way I've been able to make it work is to delay the initialization of each instance using setTimeout, but this is far from ideal. Any ideas?

A: 

I'm having exactly the same problem. I have an english editor and a corresponding arabic translation editor on the same page. Obviously I need the Arabic one to be direction:rtl, but when I set it using a different config, the english one picks up that config too, even though I invoke it with a different config...

Wild