用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2649|回复: 3
收起左侧

[已解决] CI 集成 FCKEditor 后,怎么调整FCKEditor的大小啊?

[复制链接]
发表于 2012-2-27 09:52:41 | 显示全部楼层 |阅读模式
按照Hex提供的步骤,加载成功了,但是调textarea的高和宽,FCK却没有变化,为什么?要在哪里修改才能控制啊?
发表于 2012-2-27 10:16:25 | 显示全部楼层
应该在fckeditor.js里面修改这个吧
JS复制代码
 
var FCKeditor = function( instanceName, width, height, toolbarSet, value )
{
        // Properties
        this.InstanceName       = instanceName ;
        this.Width                      = width                 || '100%' ;
        this.Height                     = height                || '200' ;
        this.ToolbarSet         = toolbarSet    || 'Default' ;
        this.Value                      = value                 || '' ;
        this.BasePath           = FCKeditor.BasePath ;
        this.CheckBrowser       = true ;
        this.DisplayErrors      = true ;
 
        this.Config                     = new Object() ;
 
        // Events
        this.OnError            = null ;        // function( source, errorNumber, errorDescription )
}
 
复制代码
发表于 2012-2-27 13:55:32 | 显示全部楼层
fck没成功过,改用百度的editor,这个比较方便。
 楼主| 发表于 2012-2-27 15:42:48 | 显示全部楼层
找到了,就是在fckeditor.js里修改的。

本版积分规则