手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >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 + SyntaxHighlighter 让代码高亮着色插件

CKEditor中加入syntaxhighlighter代码高亮插件

FCKeditor提供了一个完整的JavaScript API

ckeditor syntaxhighlighter代码高亮插件配置分享

javascript 获取FCKeditor内容

FCKeditor 图片上传进度条不动的解决方法

FCKeditor ASP.NET 上传附件研究

Fckeditor编辑器内容长度限制统计实现方法

asp.net 为FCKeditor开发代码高亮插件实现代码

修改fckeditor的文件上传功能步骤

精品推荐
分类导航