Gabriel Santos
Gabriel Santos

Reputation: 4974

CKEditor and CakePHP change height

I am developing with CakePHP and want to modify height of CKEditor generated with cake html helper, because I need to have two editors inside one page, with different height.

How I can do this with css?

Upvotes: 0

Views: 511

Answers (2)

Diego Sena
Diego Sena

Reputation: 1

<script type="text/javascript">
     CKEDITOR.replace( 'texarea', height:'350px',autoGrow_minHeight:'350px'});
</script>

or

<script type="text/javascript">
     CKEDITOR.replace( 'texarea', height:'350px',autoGrow_minHeight:'100%'});
</script>

Upvotes: 0

BruneX
BruneX

Reputation: 588

if I remember that you can do when you define ckeditor js in your view e.g.

ed = CKEDITOR.replace("textarea", { height:"291", width:"400" });

check this documentation:

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.width

http://cksource.com/forums/viewtopic.php?t=13810

Regards.

Upvotes: 1

Related Questions