Change height for just one textbox using ckeditor
I am getting 3 ckeditor textboxes on one page. The problem is, I want one textbox to be the same size as the other two. I can't find how to resize ONLY ONE textbox.
<script type="text/javascript">
CKEDITOR.config.height='600px';
</script>
Works well, but it changes all text areas. I have also tried
<script type="text/javascript">
CKEDITOR.replace('Resolution',{
height : '400px',
});
</script>
But it doesn't work ... I tried to change the config.js file but still nothing. If I put in my config.js
CKEDITOR.editorConfig = function( config ) {
config.width = '1000px';
config.height = '700px';
};
This does not work.
To summarize: How to resize a textbox using its id?
source to share
This should work for a <textarea id="Resolution">
:
<script>
CKEDITOR.replace( 'Resolution', {
height: 400
} );
</script>
Don't forget to clear your browser cache after changing your configuration!
Note that it config.height
accepts an integer representing a pixel value or a CSS value with one.
See also Size of the size editor in the CKEditor SDK and related documentation .
source to share