新聞中心
帝國(guó)cms內(nèi)容管理系統(tǒng)怎么安裝ueditor編輯器
用過帝國(guó)cms的人都知道,帝國(guó)的默認(rèn)使用的編輯器(fckeditor)實(shí)在是實(shí)用性太低了,而且還不美觀,這樣使得在編輯文章這種比較枯燥的工作更少了點(diǎn)顏色。今天無憂小編給大家介紹一款功能強(qiáng)大,界面美觀的編輯器,這個(gè)就是百度編輯器ueditor這款編輯器,今天我就跟大家說下帝國(guó)cms如和去整合這個(gè)編輯器。
1、首先是根據(jù)自己cms的版本下載相應(yīng)版本
無憂小編使用的是帝國(guó)cms的gbk版本程序,所以下載的是對(duì)應(yīng)的ueditor的gbk版本的。
2、將下載的文件夾上傳到e/data/ecmseditor/下
3.修改字段輸入表單,具體操作:系統(tǒng)-->新建表與系統(tǒng)模型-->管理數(shù)據(jù)表-->管理字段
[caption id="attachment_13290" align="alignnone" width="150"] 帝國(guó)CMS[/caption]
[caption id="attachment_13292" align="alignnone" width="150"]
帝國(guó)CMS[/caption]
[caption id="attachment_13293" align="alignnone" width="150"]
帝國(guó)CMS[/caption]
上面的輸入表單替換html為后臺(tái)的編輯器替換。如果需要修改會(huì)員的投稿的編輯器,只需要把下面的投稿表單也替換成如下代碼:
<script type="text/javascript" src="/e/data/ecmseditor/ueditor/editor_config_admin.js"></script>
<script type="text/javascript" src="/e/data/ecmseditor/ueditor/editor_all_min_admin.js"></script>
<link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/ueditor.css">
<script type="text/plain" id="myEditor" name="newstext">
<?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?>
</script>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor();
editor.render("myEditor");
editor.classid = <?=$classid?>;
editor.filepass = <?=$filepass?>;
</script>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
<tr>
<td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
關(guān)鍵字替換 <input name="copyimg" type="checkbox" id="copyimg" value="1">
遠(yuǎn)程保存圖片(
<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">
遠(yuǎn)程保存FLASH(地址前綴:
<input name="qz_url" type="text" id="qz_url" size="">
)</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 圖片鏈接轉(zhuǎn)為下一頁 <input name="autopage" type="checkbox" id="autopage" value="1"> 自動(dòng)分頁
,每
<input name="autosize" type="text" id="autosize" value="5000" size="5">
個(gè)字節(jié)為一頁 取第
<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
張上傳圖為標(biāo)題圖片(
<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>
以上操作在無憂主機(jī)實(shí)驗(yàn)室完成驗(yàn)證,可以在linux環(huán)境下php虛擬主機(jī)上正常替換ueditor編輯。
本文地址:http://m.love62.cn/empirecms/13289.html
![1](/wp-content/themes/starow_z/img/o-1.png)
![1](/wp-content/themes/starow_z/img/o-2.png)
![1](/wp-content/themes/starow_z/img/o-3.png)
![1](/wp-content/themes/starow_z/img/o-4.png)
![1](/wp-content/themes/starow_z/img/o-5.png)
![1](/wp-content/themes/starow_z/img/o-6.png)
![1](/wp-content/themes/starow_z/img/o-7.png)