我正在使用CakePHP进行开发,并希望修改使用cake html helper生成的CKEditor的高度,因为我需要在一个页面内有两个编辑器,高度不同。
我如何用css做到这一点?
答案 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>