国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > CMS > 帝國(guó)Empire > 正文

帝國(guó)cms7.5整合百度編輯器ueditor教程

2024-08-28 12:26:24
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

1、根據(jù)自己使用的帝國(guó)cms版本編碼下載對(duì)應(yīng)的ueditor版本

下載地址 http://ueditor.baidu.com/website/download.html#ueditor

2、解壓附件,重命名為”ueditor“,將”ueditor“文件夾上傳至帝國(guó)cms的/e/data/ecmseditor/下

3、進(jìn)入帝國(guó)CMS后臺(tái),依次點(diǎn)擊:系統(tǒng) - 新建表與系統(tǒng)模型 - 管理數(shù)據(jù)表 - 管理字段,修改字段輸入表單

4、修改”newstext 新聞?wù)?ldquo;字段

5、將以下代碼,覆蓋到”輸入表單替換HTML代碼“處

 1 <script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.config.js"></script>  2 <script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.all.js"></script>  3 <link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/ueditor.css">  4 <script type="text/plain" id="myEditor" name="newstext">  5 <?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?>  6 </script>  7 <script type="text/javascript">  8 var editor = new baidu.editor.ui.Editor();  9 editor.render("myEditor"); 10 editor.classid = <?=$classid?>; 11 editor.filepass = <?=$filepass?>; 12 </script> 13 <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5"> 14 <tr> 15 <td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>> 16 關(guān)鍵字替換&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1"> 17 遠(yuǎn)程保存圖片( 18 <input name="mark" type="checkbox" id="mark" value="1"> 19 <a href="SetEnews.php" target="_blank">加水印</a>)&nbsp;&nbsp; 20 <input name="copyflash" type="checkbox" id="copyflash" value="1"> 21 遠(yuǎn)程保存FLASH(地址前綴: 22 <input name="qz_url" type="text" id="qz_url" size=""> 23 )</td> 24 </tr> 25 <tr> 26   27 <td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 圖片鏈接轉(zhuǎn)為下一頁(yè)&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1"> 自動(dòng)分頁(yè) 28 ,每 29 <input name="autosize" type="text" id="autosize" value="5000" size="5"> 30 個(gè)字節(jié)為一頁(yè)&nbsp;&nbsp; 取第 31 <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1"> 32 張上傳圖為標(biāo)題圖片( 33 <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1"> 34 縮略圖: 寬 35 <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>"> 36 *高 37 <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>"> 38 )</td> 39 </tr> 40 </table>

 6、帝國(guó)CMS百度編輯器整合完成,其他模型整合同理。

帝國(guó)CMS前臺(tái)顯示代碼高亮教程。將以下代碼復(fù)制到要顯示代碼高亮的頁(yè)面。

1 <script src="/e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCore.js" type="text/javascript"></script>    2 <link rel="stylesheet" href="/e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css">3 <script type="text/javascript">      4 SyntaxHighlighter.all();       5 </script>

最后在加一條解決百度編輯器代碼高亮不換行的BUG 

1、找到高亮代碼顯示的css文件  /e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css

2、搜索

1 width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;

3、替換成以下代碼

1 width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;word-break:break-all;

4、保存完成

 

原來(lái)的代碼:

<?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","1000px","800px")?>

<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)鍵字替換&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1">

      遠(yuǎn)程保存圖片(

      <input name="mark" type="checkbox" id="mark" value="1">

      <a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)&nbsp;&nbsp; 

      <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)為下一頁(yè)&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1"> 自動(dòng)分頁(yè)

      ,每 

      <input name="autosize" type="text" id="autosize" value="5000" size="5">

      個(gè)字節(jié)為一頁(yè)&nbsp;&nbsp; 取第 

      <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>

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 牡丹江市| 刚察县| 全州县| 浏阳市| 潼南县| 水城县| 攀枝花市| 哈巴河县| 嘉荫县| 保靖县| 临沭县| 临沂市| 中阳县| 永仁县| 五家渠市| 保德县| 建德市| 常州市| 松江区| 建阳市| 肇源县| 塘沽区| 游戏| 谢通门县| 兴文县| 兰西县| 浏阳市| 阳城县| 赤峰市| 广水市| 鄂托克旗| 丰顺县| 拜城县| 玉环县| 分宜县| 龙口市| 泗洪县| 额济纳旗| 遵义县| 鹤岗市| 汽车|