Hi, i have a lot of textareas in a page, they all have the same name/class, but is in different forms. How many textareas may vary.
Is it possible to initiate a CKeditor for all of them, by referring to textarea class or something like that?
Is it possible to initiate a CKeditor for all of them, by referring to textarea class or something like that?
Re: More editors in page
Now i found this:
CKEDITOR.replaceAll( 'comment' ,function( textarea, config )
{
//config here
});
But how do i parse the config?
I've tried these ways:
config.width : '200px'
config.width = '200px'
this.width = '200px'
this.width : '200px'
textarea.config.width = '200px'
textarea.config.width : '200px'
width : '200px'
width = 200px'
none of them seems to work!
Re: More editors in page
so you can just do width:'200px'. The only one you didn't try.. isn't it always the way
Re: More editors in page
Seems like replace and replaceAll doesnt use the same way :S
Re: More editors in page
Re: More editors in page
You are using it in the wrong way. Read http://alfonsoml.blogspot.com/2009/08/c ... ditor.html and the documentation. If you pass a class name, then no other parameters will be used.
Re: More editors in page
instead of :
CKEDITOR.replaceAll( 'comment' ,function( textarea, config )
{
//config here
});
try to use... seems to work on my instances
CKEDITOR.replaceAll( 'comment' ,
{
width:200px,
});
Re: More editors in page
Thats a correct format: