I have a project with multiple instances of ckeditor 3.1. I use jquery.
How i can easy change for example the height of only one instance?
Is there a way like:
<textarea class="ckeditor" height="100px" name="editor 1">lkjlkj</textarea>
<textarea class="ckeditor" height="200px" name="editor 2">lkjlkj</textarea>
How i can easy change for example the height of only one instance?
Is there a way like:
<textarea class="ckeditor" height="100px" name="editor 1">lkjlkj</textarea>
<textarea class="ckeditor" height="200px" name="editor 2">lkjlkj</textarea>
Re: how to change the height for one ckeditor, not all?
Re: how to change the height for one ckeditor, not all?
Thx, but im looking for a way with jQuery that is independent from the name attribute like this:

if($('.ckeditor').attr('height')) {
$('.ckeditor').ckeditor({height:$('.ckeditor').attr('height'});
}
But it wont work...
Re: how to change the height for one ckeditor, not all?
A solution I use to resize textarea's on the fly is:
$(document).ready(function(){
$('.ckeditor').each(function(){
if($(this).attr('height')) {
CKEDITOR.replace($(this).attr('name'),
{
height: $(this).attr('height')
});
}
});
});
Re: how to change the height for one ckeditor, not all?
Read the below article. There you will get to know step by step procedure of changint height of ckeditor.
http://www.stepcoder.com/Articles/10003/how-to-set-or-change-height-of-ckediotr-textbox-area-using-asp-net
Hope this Helps..