標籤:asc 方法 設定檔 theme 目錄 ima 檔案 edit 技術
1.ueditor是百度很好用的一款文字編輯器,第一次使用,在此記錄使用方法。
2.從http://ueditor.baidu.com/website/download.html#ueditor下載editor php utf-8版本
3.解壓:說明
dialogs:存放的是彈出對話方塊對應的資源,還有js檔案和js檔案資源
lang:語言檔案目錄
php:php目錄:php檔案->config.json:設定檔
themes:主題目錄
third-party:第三方外掛程式
index.html:demo
ueditor.all.js:ueditor源碼檔案
ueditor.all.min.js:ueditor源碼檔案壓縮版
ueditor.config.js:設定檔(可以建立多個不同版本,在多個地方使用)
ueditor.parse.js:第三方外掛程式
ueditor.parse.min.js:第三方外掛程式壓縮版
4.在檔案中建立index.html檔案,引入ueditor,兩者放在平級目錄中:如下:
5.在index.html中引入ueditor,index.html編輯如下:
<html><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>editor測試</title> <script src="/ueditor/ueditor.config.js">/*引入設定檔*/</script> <script src="/ueditor/ueditor.all.js">/*引入源碼檔案*/</script></head><body> <textarea id="content" rows="10" cols="70" style="border:1px solid #E5E5E5;">55222</textarea> <script type="text/javascript"> UE.getEditor("content");//執行個體化編輯器 傳參,id為將要被替換的容器。 </script></html>
引入效果:
6.
ueditor PHP版本使用方法