Ueditor編輯器是由百度開發(fā)的富文本編輯器,兼容所有CMS系統(tǒng),具有輕量,可定制,注重用戶體驗(yàn)等特點(diǎn),開源基于BSD協(xié)議,安裝簡單,允許自由使用和使用代碼等優(yōu)點(diǎn)。

Ueditor編輯器軟件特色
體積小巧,性能優(yōu)良,使用簡單
分層架構(gòu),方便定制與擴(kuò)展
滿足不同層次用戶需求,更加適合團(tuán)隊(duì)開發(fā)
豐富完善的中文文檔
多個(gè)瀏覽器支持:Mozilla, MSIE, FireFox, Maxthon,Safari和Chrome
更好的使用體驗(yàn)
擁有專業(yè)QA團(tuán)隊(duì)持續(xù)支持,已應(yīng)用在百度各大產(chǎn)品線上
Ueditor編輯器怎么安裝?
1、引用JS;
ueditor.config.js
ueditor.all.min.js
lang/zh-cn/zh-cn.js
<script src="__plus__/ueditor/ueditor.config.js"></script>
<script src="__plus__/ueditor/ueditor.all.min.js"></script>
<script src="__plus__/ueditor/lang/zh-cn/zh-cn.js"></script>
2. 編輯器顯示處 id="content"
<textarea id="content" name="content"></textarea>
3.底部
<script type="text/javascript">
//實(shí)例化編輯器
//建議使用工廠方法getEditor創(chuàng)建和引用編輯器實(shí)例,如果在某個(gè)閉包下引用該編輯器,直接調(diào)用UE.getEditor('editor')就能拿到相關(guān)的實(shí)例
UE.getEditor('content',{initialFrameWidth:1500,initialFrameHeight:400,});
</script>
效果:

4.ueditor編輯器按鈕配置方法
定制工具欄圖標(biāo)
UEditor 工具欄上的按鈕列表可以自定義配置,只需要通過修改配置項(xiàng)就可以實(shí)現(xiàn)需求
配置項(xiàng)修改說明
修改配置項(xiàng)的方法:
js方法
<script type="text/javascript">
//實(shí)例化編輯器
//建議使用工廠方法getEditor創(chuàng)建和引用編輯器實(shí)例,如果在某個(gè)閉包下引用該編輯器,直接調(diào)用UE.getEditor(‘editor’)就能拿到相關(guān)的實(shí)例
UE.getEditor(‘content’,{initialFrameWidth:700,initialFrameHeight:400, toolbars: [[‘bold’, ‘italic’, ‘underline’, ‘fontborder’, ‘strikethrough’, ‘superscript’, ‘subscript’,
‘removeformat’, ‘formatmatch’, ‘autotypeset’, ‘blockquote’, ‘pasteplain’, ‘|’, ‘forecolor’, ‘backcolor’, ‘insertorderedlist’, ‘insertunorderedlist’,
‘selectall’, ‘cleardoc’]]});
</script>
>```
2. 方法二:實(shí)例化編輯器的時(shí)候傳入 toolbars 參數(shù)(寫在script代碼塊里)
>`var ue = UE.getEditor(‘container’);`
簡單列表-注意toolbars數(shù)組里面只有一個(gè)數(shù)組時(shí),編輯器上只有會有一行按鈕,沒有換行
toolbars: [[‘fullscreen’, ‘source’, ‘undo’, ‘redo’, ‘bold’]]
若想有多行列表-toolbars數(shù)組里面要有多個(gè)數(shù)組,每個(gè)數(shù)組占一行
例子:
把下面的代碼放入高度后面:
```html
toolbars: [['fullscreen', 'source', 'undo', 'redo','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist','selectall', 'cleardoc']]
<script type="text/javascript">
//實(shí)例化編輯器
//建議使用工廠方法getEditor創(chuàng)建和引用編輯器實(shí)例,如果在某個(gè)閉包下引用該編輯器,直接調(diào)用UE.getEditor('editor')就能拿到相關(guān)的實(shí)例
UE.getEditor('content',{initialFrameWidth:800,initialFrameHeight:400,toolbars: [['fullscreen', 'source', 'undo', 'redo','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist','selectall', 'cleardoc']]});
</script>


360解壓縮軟件2023
看圖王2345下載|2345看圖王電腦版 v10.9官方免費(fèi)版
WPS Office 2019免費(fèi)辦公軟件
QQ瀏覽器2023 v11.5綠色版精簡版(去廣告純凈版)
下載酷我音樂盒2023
酷狗音樂播放器|酷狗音樂下載安裝 V2023官方版
360驅(qū)動大師離線版|360驅(qū)動大師網(wǎng)卡版官方下載 v2023
【360極速瀏覽器】 360瀏覽器極速版(360急速瀏覽器) V2023正式版
【360瀏覽器】360安全瀏覽器下載 官方免費(fèi)版2023 v14.1.1012.0
【優(yōu)酷下載】優(yōu)酷播放器_優(yōu)酷客戶端 2019官方最新版
騰訊視頻播放器2023官方版
【下載愛奇藝播放器】愛奇藝視頻播放器電腦版 2022官方版
2345加速瀏覽器(安全版) V10.27.0官方最新版
【QQ電腦管家】騰訊電腦管家官方最新版 2024
360安全衛(wèi)士下載【360衛(wèi)士官方最新版】2023_v14.0