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
CKEDITOR.replace( '".$key."', { filebrowser_cmsbrowse : '/cgi-bin/go.pl/admin/cms-browse-ckeditor.html', filebrowser_image_browse_url : '/ckfinder/ckfinder4cms.html?action=js&func=SetUrl&thumbFunc=SetUrl&Type=Images', filebrowser_file_browse_url : '/ckfinder/ckfinder4cms.html?action=js&func=SetUrl&thumbFunc=SetUrl&Type=Files', toolbarLocation:'seperate', theme:'special', removePlugins:'toolbar,about,save,resize', extraPlugins:'toolbarfloater,add,saveCMS,cmslocation,cmstemplate,autogrow', toolbarStatus:'show', width: '250px' });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
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:
CKEDITOR.replaceAll( function(textarea,config) { if (textarea.className!="areaclass") return false; //for only assign a class config.enterMode = CKEDITOR.ENTER_BR, config.shiftEnterMode = CKEDITOR.ENTER_P, config.filebrowserBrowseUrl = '_filebrowse.php?type=Images', config.filebrowserUploadUrl = '_fileupload.php?type=Files' });