日期:2014-05-17  浏览次数:20401 次

怎样对ckEditor的高度进行设置
我用的ckEditor版本是3.6,我改了一下config.js文件代码,改后的代码如下:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
    config.width = 400; 
    config.height = 800; 
};
但里面的参数并没有在调用的网页中起作用,请问这个可以怎么设置?

------解决方案--------------------
引用:
我用的ckEditor版本是3.6,我改了一下config.js文件代码,改后的代码如下:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
    config.width = 400; 
    config.height = 800; 
};
但里面的参数并没有在调用的网页中起作用,请问这个可以怎么设置?


直接在HTML里面加上 width就可以了!
------解决方案--------------------
1、前台设置
<CKEditor:CKEditorControl ID="ckContent" Height="335" MaxLength="2147483640" BasePath="~/Scripts/ckeditor" runat="server"></CKEditor:CKEditorControl>
2、后台设置
ckContent.Height=.....