配置fckeditor 實現(xiàn)圖片的上傳
更新時間:2009年11月26日 17:56:26 作者:
配置fckeditor 實現(xiàn)圖片的上傳
1.應(yīng)該修改editor\filemanager\upload\php\editor\filemanager\browser\default\connectors\php\config.php 中的$Config['Enabled'] = true ;
2.應(yīng)該修改editor\filemanager\upload\php\editor\filemanager\upload\php\config.php 中的$Config['Enabled'] = true ;
3.應(yīng)該修改editor\filemanager\upload\php下util.php里面的getrootpath函數(shù)
function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('\\','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }
還有editor\filemanager\browser\default\connectors\php下io.php里面的getrootpath函數(shù)
function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('\\','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }
然后修改editor\filemanager\browser\default\connectors\php里面config.php文件的$Config['UserFilesPath']變量以及editor\filemanager\upload\php下config.php里面的$Config['UserFilesPath']變量就行了。不過圖片在編輯器里面不能看見,但是顯示成內(nèi)容的時候沒有問題
2.應(yīng)該修改editor\filemanager\upload\php\editor\filemanager\upload\php\config.php 中的$Config['Enabled'] = true ;
3.應(yīng)該修改editor\filemanager\upload\php下util.php里面的getrootpath函數(shù)
復(fù)制代碼 代碼如下:
function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('\\','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }
還有editor\filemanager\browser\default\connectors\php下io.php里面的getrootpath函數(shù)
復(fù)制代碼 代碼如下:
function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('\\','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }
然后修改editor\filemanager\browser\default\connectors\php里面config.php文件的$Config['UserFilesPath']變量以及editor\filemanager\upload\php下config.php里面的$Config['UserFilesPath']變量就行了。不過圖片在編輯器里面不能看見,但是顯示成內(nèi)容的時候沒有問題
相關(guān)文章
PHP網(wǎng)頁 Ewebeditor 編輯器嵌入方法
因為ewebeditor編輯器的功能強(qiáng)大,容易擴(kuò)展等原因,一直是大家比較喜愛的編輯器,所以下面介紹下ewebeditor如何跟php結(jié)合。2009-07-07在asp.net中KindEditor編輯器的使用方法小結(jié)
由于國外的服務(wù)器好象對一些要引用dll編輯器由于安全問題,鎖定了web.config中的一些權(quán)限,在先試了FreeTexbox不行,FCKEditor也不行,因為都是要引用dll文件,最后同事介紹一款 純js的kindeditor編輯器,2010-12-12Prism 代碼高亮修改不包含 Code 標(biāo)簽的支持
在 WordPress 中加入了百度的 UEditor 編輯器后,由于自帶的代碼插件在使用時只會在代碼外層加入 pre 標(biāo)簽,下面給出解決方法,需要的朋友可以參考下2017-03-03FCKeditor .NET的配置、擴(kuò)展與安全性經(jīng)驗交流
FCKeditor是使用非常廣泛的HTML編輯器,本文從 ASP.NET 的使用場景對 FCKeditor 與 FCKeditor.NET 的配置、功能擴(kuò)展(如自定義文件上傳子目錄、自定義文件名、上傳圖片的后期處理等)、以及安全性進(jìn)行初步的闡述。2011-08-08Edge瀏覽器開發(fā)者工具代碼修改同步到Vscode中
這篇文章主要為答案及介紹了Edge瀏覽器開發(fā)者工具代碼修改同步到Vscode中,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-04-04常用網(wǎng)頁編輯器漏洞手冊(全面版)fckeditor,ewebeditor
常用網(wǎng)頁編輯器漏洞手冊(全面版)fckeditor,ewebeditor,使用這類編輯器的朋友一定要注意下。2011-04-04CKEditor中加入syntaxhighlighter代碼高亮插件
CKEditor是新一代的FCKeditor,是一個重新開發(fā)的版本。CKEditor是全球最優(yōu)秀的網(wǎng)頁在線文字編輯器之一,因其驚人的性能與可擴(kuò)展性而廣泛的被運(yùn)用于各大網(wǎng)站2014-12-12