手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >autogrow 让FCKeditor高度随内容增加的插件
autogrow 让FCKeditor高度随内容增加的插件
摘要:这个插件在默认情况下可能运行不正常,必须做一点修改才可以。打开插件所在文件:/editor/plugins/autogrow/fckplug...

这个插件在默认情况下可能运行不正常,必须做一点修改才可以。

打开插件所在文件:/editor/plugins/autogrow/fckplugin.js

找到第65行:

window.frameElement.height = iMainFrameSize ;

将其修改为:

复制代码 代码如下:

if (window.frameElement.style.height) {

window.frameElement.style.height = iMainFrameSize;

}

else {

window.frameElement.height = iMainFrameSize;

}

这样就可以兼容IE和火狐浏览器了。

启用插件:

打开文件:/fckeditor/fckconfig.js

启用这两行:

FCKConfig.Plugins.Add( 'autogrow' ) ;

FCKConfig.AutoGrowMax = 600 ;

AutoGrowMax是限制最高高度。可以根据需要自行设置。

参考:http://cksource.com/forums/viewtopic.php?f=6&t=10214&p=30094

【autogrow 让FCKeditor高度随内容增加的插件】相关文章:

FCKeditor提供了一个完整的JavaScript API

FCKeditor 新闻组件的一些程序漏洞

ckeditor syntaxhighlighter代码高亮插件,完美修复

FCKeditor ASP.NET 上传附件研究

让IE8和IE9支持eWebEditor在线编辑器的方法

网页编辑器FCKeditor 2.6.4精简配置方法

asp.net FCKeditor 2.6.3 配置说明

FCKeditor添加自定义按钮的方法

FCKeditor2.3 For PHP 详细整理的使用参考

javascript 获取FCKeditor内容

精品推荐
分类导航