hello, great job !.
I have one problem. I have many textarea fields named based on array:
CKEDITOR.replace( 'comentarios[1]'), CKEDITOR.replace( 'comentarios[2]'), CKEDITOR.replace( 'comentarios[3]').
everything is working fine, except when I want to get / set the field value, I get one error: I'm using:
CKEDITOR.instances.comentarios[1].setData('xxx')
what's wrong...?
thanks in advance...!
Try this way:
Try this way:
Basically, it is not possible to get object property using the "dot" format if property name contains special characters like []. In such a case you need to use the array-like way.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+