CKEditor和CakePHP改变高度

时间:2012-05-07 20:35:33

标签: css cakephp cakephp-1.3 ckeditor

我正在使用CakePHP进行开发,并希望修改使用cake html helper生成的CKEditor的高度,因为我需要在一个页面内有两个编辑器,高度不同。

我如何用css做到这一点?

2 个答案:

答案 0 :(得分:1)

如果我记得您在视图中定义ckeditor js时可以这样做,例如

ed = CKEDITOR.replace(“textarea”, { 高度:“291”,宽度:“400” });

查看此文档:

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

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

问候。

答案 1 :(得分:0)

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

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