sabecs
asked on
Need 2 text areas using CKEDITOR on same page to have diffrent widths?
Hi,
I have 2 text area on my page using CKEDITOR and need different widths for both, but it appears that both get resized to the same value and in this case using the last value specified of CKEDITOR.config.width ='300px';
Is there a way to specify a diffrent size?
Thanks.
I have 2 text area on my page using CKEDITOR and need different widths for both, but it appears that both get resized to the same value and in this case using the last value specified of CKEDITOR.config.width ='300px';
Is there a way to specify a diffrent size?
Thanks.
<textarea id="content" name="content"><?php echo $content; ?></textarea>
<script>
CKEDITOR.replace( 'content' );
CKEDITOR.config.width ='800px';
CKEDITOR.config.height='500px';
CKEDITOR.config.skin = 'moonocolor';
</script>
<textarea id="content2" name="content2"><?php echo $content2; ?></textarea>
<script>
CKEDITOR.replace( 'content2' );
CKEDITOR.config.width ='300px';
CKEDITOR.config.height='500px';
CKEDITOR.config.skin = 'moonocolor';
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, that did the trick.
CKEDITOR.replace( 'content2',{ width: '275px', height: '400px' });
CKEDITOR.replace( 'content2',{ width: '275px', height: '400px' });
http://stackoverflow.com/questions/2681521/how-to-change-size-of-ckeditor-from-javascript