phpcms v9后台更换ueditor编辑器
生活随笔
收集整理的這篇文章主要介紹了
phpcms v9后台更换ueditor编辑器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
鏈接:https://share.weiyun.com/LmiezF8J 密碼:jmpmr4
1、下載上面的分享鏈接文件,上傳到項目 /statics/js/ 目錄下
2、修改/phpcms/libs/classes/form.class.php文件,把編輯器調用方法editor{}中的下列內容:
public static function editor($textareaid = 'content', $toolbar = 'basic', $module = '', $catid = '', $color = '', $allowupload = 0, $allowbrowser = 1,$alowuploadexts = '',$height = 200,$disabled_page = 0, $allowuploadnum = '10') {$str ='';if(!defined('EDITOR_INIT')) {$str .= '<script type="text/javascript" src="'.JS_PATH.'ueditor/ueditor.config.js"></script>';$str .= '<script type="text/javascript" src="'.JS_PATH.'ueditor/ueditor.all.js"></script>';define('EDITOR_INIT', 1);}//$str .= '<script id="container" name="content" type="text/plain"></script>';$str .= '<script type="text/javascript">var ue = UE.getEditor("content",{autoHeightEnabled:false,initialFrameWidth:950,initialFrameHeight:400,zIndex:0});</script><br>';//$str .= '<style>#edui1{width:720px;}</style>';return $str;}完成以上操作,清除瀏覽器緩存就可以了
參考文章:phpcmsv9編輯器替換百度ueditor編輯器教程整理 php開發技術-重慶牛創網絡科技有限公司
總結
以上是生活随笔為你收集整理的phpcms v9后台更换ueditor编辑器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 离散数学-各种关联词的符号化
- 下一篇: python中给变量赋值时、既确定了变量