Hello everyone,
Just downloaded CKEditor & CKFinder to see if it's suitable for our companies CMS. Really impressed so far but just running into a few problems.
How do you access the CKEditor instance? I've searched the forum and a few people have referenced this code but it doesn't seem to work for me:
I've only got one textarea on the page, but this is set dynamically so there could be more. I've tried accessing the instance using the following but none seem to work:
Any ideas?
Thanks for your help
Just downloaded CKEditor & CKFinder to see if it's suitable for our companies CMS. Really impressed so far but just running into a few problems.
How do you access the CKEditor instance? I've searched the forum and a few people have referenced this code but it doesn't seem to work for me:
for(var instanceName in CKEDITOR.instances) { console.log( CKEDITOR.instances[instanceName] ); }
I've only got one textarea on the page, but this is set dynamically so there could be more. I've tried accessing the instance using the following but none seem to work:
CKEDITOR.instances.editor1 CKEDITOR.instances[editor1] CKEDITOR.instances["editor1"]
Any ideas?
Thanks for your help
Re: Getting CKEDITOR instance
Re: Getting CKEDITOR instance
Re: Getting CKEDITOR instance
What kind of better solution?
Re: Getting CKEDITOR instance
i have found a solution by adding a class on my textarea and make my plugin's code more generic.
EDIT :
Nice, i have found a solution:
Re: Getting CKEDITOR instance
CKEDITOR.instances is an object as declared in core/ckeditor.js line 22, so I run a foreach loop to determine it's methods and properties:
Hope this helps... Pardon my bad english...