免费一级码无码婬片AA,多姿,国产成人精品日本亚洲18图 ,亚洲欧美视频一区,久久久久国产精品一区

做網站找實速,專業網站制作設計平臺
首頁 > 課堂 > 網站技術 > 詳情
網站標簽 / Tags

帝國CMS7.5整合ueditor 1.4.3百度編輯器教程(修改版本)

2020-02-16 16:32:08   來源:實速網絡|網站建設|網站設計|網站優化|網站仿制|網站SEO|網站推廣|空間域名|主機VPS|服務器|網站源碼|網站模版   瀏覽: 次
帝國CMS7.5整合ueditor 1.4.3百度編輯器教程(修改版本) 發布時間:2019-10-12 來源:未知 瀏覽: 關鍵詞:

帝國CMS7.5整合ueditor 1.4.3百度編輯器教程(修改版本)

發布時間:2019-10-12 來源:未知 瀏覽: 關鍵詞:
很多人不喜歡使用帝國CMS自帶的后臺文章發布編輯器,因為功能太少且很多地方有問題,最近大家升級帝國CMS7.5之后,又開始紛紛求助如何整合百度編輯器1.4.3版本,正好電腦我幫您小編也有強迫癥,將帝國CMS7.5整合了ueditor 1.4.3百度編輯器 UTF-8版本,下面將教程和自己修改優化過的百度編輯器ueditor 1.4.3分享給大家!
方法步驟:
帝國cms7.5整合Ueditor1.4.3編輯器優化版使用說明:
1、請直接解壓e目錄的覆蓋網站根目錄下的e目錄文件
備注:如果修改過后臺默認admin目錄的自行替換對應的文件。
2、編輯器后臺使用的圖片上傳路徑…等默認為相對路徑,如果有多端的用戶,希望使用絕對路徑,請修改/e/extend/ueditor/php/config.json 文件下的"imageUrlPrefix": "你的網址",
并且修改controller.php文件,將85行的://$CONFIG['imageUrlPrefix']=$public_r['fileurl']; 前面的兩個注釋符 // 去掉保存即可。
3、登錄帝國CMS后臺,單擊“系統”-“數據表與系統模型”-“管理數據表”-在你使用的系統數據表點擊“管理字段”(默認是新聞系統數據表,小編使用的是文章系統數據表,所以就修改文章系統數據表的“管理字段”)-“修改newstext字段”下面的“輸入表單替換html代碼(增加字段時請留空)”
復制粘貼以下代碼提交即可:
<?php
$ziduan='newstext';//編輯器使用的字段名稱
if($enews=='MAddInfo' || $enews=='MEditInfo'){//前臺投稿
$qiantai=1;
$ziduanzhi=$ecmsfirstpost==1?"":DoReqValue($mid,$ziduan,stripSlashes($r[$ziduan]));
}else{//后臺
$qiantai=0;
$ziduanzhi=$ecmsfirstpost==1?"":stripSlashes($r[$ziduan]);
}
?>
<script>var classid='<?=$classid?>',infoid='<?=$id?>',filepass='<?=$filepass?>',ehash='<?=$ecms_hashur[ehref]?>',qiantai='<?=$qiantai?>';//把參數傳給編輯器,增加支持7.2版本的金剛模式</script>
<script type="text/javascript" charset="utf-8" src="<?=$public_r['newsurl']?>e/extend/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="<?=$public_r['newsurl']?>e/extend/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?=$public_r['newsurl']?>e/extend/ueditor/ueditor.toolbarconfig.js"></script>
<textarea id="<?=$ziduan?>" name="<?=$ziduan?>"><?=$ziduanzhi?></textarea>
<script type="text/javascript">
<?=$ziduan?>=UE.getEditor('<?=$ziduan?>',{
serverUrl: "<?=$public_r['newsurl']?>e/extend/ueditor/php/controller.php",//自己的請求接口
toolbars:Default,//工具欄配置文件,具體參考ueditor.toolbarconfig.js文件中說明
pageBreakTag:'',//帝國分頁標簽
initialFrameWidth:'100%',//編輯器寬
initialFrameHeight:300//編輯器高
//等等其它配置自行添加,參考UE默認配置文件復制修改即可
});
//自定義請求參數
<?=$ziduan?>.ready(function(){
<?=$ziduan?>.execCommand('serverparam',{
'filepass':'<?=$filepass?>',//修改時候是信息ID
'classid' :'<?=$classid?>',
'qiantai':<?=$qiantai?>
});
});
</script>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
<tr height="25"> 
<td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
關鍵字替換   <input name="copyimg" type="checkbox" id="copyimg" value="1">
遠程保存圖片(
<input name="mark" type="checkbox" id="mark" value="1">
<a href="SetEnews.php" target="_blank">加水印</a>)   
<input name="copyflash" type="checkbox" id="copyflash" value="1">
遠程保存FLASH(地址前綴: 
<input name="qz_url" type="text" id="qz_url" size="">
)</td>
</tr>
<tr height="25">
<td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 圖片鏈接轉為下一頁   <input name="autopage" type="checkbox" id="autopage" value="1">自動分頁
,每 
<input name="autosize" type="text" id="autosize" value="5000" size="5">
個字節為一頁   取第 
<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
張上傳圖為標題圖片( 
<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
縮略圖: 寬 
<input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
*高
<input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
)</td>
</tr>
</table>
責任編輯:實速科技