justdoit 发表于 2012-2-27 09:52:41

CI 集成 FCKEditor 后,怎么调整FCKEditor的大小啊?

按照Hex提供的步骤,加载成功了,但是调textarea的高和宽,FCK却没有变化,为什么?要在哪里修改才能控制啊?

phptree 发表于 2012-2-27 10:16:25

应该在fckeditor.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 )
}

meditator 发表于 2012-2-27 13:55:32

fck没成功过,改用百度的editor,这个比较方便。

justdoit 发表于 2012-2-27 15:42:48

找到了,就是在fckeditor.js里修改的。
页: [1]
查看完整版本: CI 集成 FCKEditor 后,怎么调整FCKEditor的大小啊?