I have two forms on a page that are almost identical - they describe packages ie:(package1, package2)
There is a textarea field on both forms
in using version 3.2 I was unable to use replaceAll to create my CKEditor instances because it would complain about the "description" instance already being used when trying to create the second instance. My work around was to dynamically create ID's for my textareas and individually create instances for them
This worked as expected, but now when trying to upgrade to version 3.3.1 I have an error thrown
I have tried a couple different ways - including using the jquery plugin and trying replaceAll again, but none seem to be the ticket. This only happens when I try to pass in a config option, if I were to just replace the instance - it appears to work as expected - but I need a different toolbar for these instances.
There is a textarea field on both forms
<textarea name="description"></textarea>
in using version 3.2 I was unable to use replaceAll to create my CKEditor instances because it would complain about the "description" instance already being used when trying to create the second instance. My work around was to dynamically create ID's for my textareas and individually create instances for them
if (CKEDITOR.env.isCompatible) {
$('textarea').each(function(index) {
var $id = 'textarea_' + index;
$(this).attr('id', $id);
CKEDITOR.replace($id,
{
toolbar : 'LimitedToolset'
}
});
}This worked as expected, but now when trying to upgrade to version 3.3.1 I have an error thrown
Uncaught TypeError: Cannot read property 'length' of undefined
I have tried a couple different ways - including using the jquery plugin and trying replaceAll again, but none seem to be the ticket. This only happens when I try to pass in a config option, if I were to just replace the instance - it appears to work as expected - but I need a different toolbar for these instances.
