Reputation: 81
How can I adjust the height in CKEditor?
Here is my code for CKEditor.
<script type="text/javascript">
CKEDITOR.replace( 'content',
{
toolbar :
[
['Source'],
['Bold','Italic','Underline','Strike'],
]
});
</script>
Upvotes: 8
Views: 19404
Reputation: 21
This can be easily done by adding few lines of code in your common script file.
**Note : No need to mention 'px' neither for width nor height. '%' is must!
That's it!
Upvotes: 0
Reputation: 2396
Go to confi.js file and in the
CKEDITOR.editorConfig = function( config ) {
.
.
.
.
**config.height = 320;**
};
So actually you just need to add config.height = required height;
.
Upvotes: 1
Reputation: 1234
Add the height and width setting in the parameters:
CKEDITOR.replace( 'content',
{
toolbar :
[
['Source'],
['Bold','Italic','Underline','Strike'],
],
height: 300,
width: 400
});
Upvotes: 24