autogrow 讓FCKeditor高度隨內(nèi)容增加的插件
更新時間:2011年02月19日 19:36:08 作者:
讓FCKeditor高度隨內(nèi)容增加的插件,這個插件在默認(rèn)情況下可能運行不正常,必須做一點修改才可以。
這個插件在默認(rèn)情況下可能運行不正常,必須做一點修改才可以。
打開插件所在文件:/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是限制最高高度??梢愿鶕?jù)需要自行設(shè)置。
參考:http://cksource.com/forums/viewtopic.php?f=6&t=10214&p=30094
打開插件所在文件:/editor/plugins/autogrow/fckplugin.js
找到第65行:
window.frameElement.height = iMainFrameSize ;
將其修改為:
復(fù)制代碼 代碼如下:
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是限制最高高度??梢愿鶕?jù)需要自行設(shè)置。
參考:http://cksource.com/forums/viewtopic.php?f=6&t=10214&p=30094
相關(guān)文章
Fckeditor XML Request error:internal server error (500) 解決方法
本文章收藏了關(guān)于FCKEditor XML Request Error:Internal Server Error(500)各種問題的解決辦法2012-09-09FCKeditor .NET的配置、擴展與安全性經(jīng)驗交流
FCKeditor是使用非常廣泛的HTML編輯器,本文從 ASP.NET 的使用場景對 FCKeditor 與 FCKeditor.NET 的配置、功能擴展(如自定義文件上傳子目錄、自定義文件名、上傳圖片的后期處理等)、以及安全性進(jìn)行初步的闡述。2011-08-08Ueditor和CKeditor 兩款編輯器的使用與配置方法
這篇文章主要介紹了Ueditor和CKeditor 兩款編輯器的使用與配置方法,需要的朋友可以參考下2017-03-03在kindEditor中獲取當(dāng)前光標(biāo)的位置索引的實現(xiàn)代碼
一直在用KindEditor,今天要用到光標(biāo)的位置,然后就gg一下辦法,后來發(fā)現(xiàn)這東西的編輯區(qū)域居然是iframe里面的一個body,不是textarea/input,后來就翻開了他的代碼看,發(fā)現(xiàn)有個insertHtml2011-11-11