日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

neditor 自定义工具栏配置

發(fā)布時間:2023/12/10 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 neditor 自定义工具栏配置 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

neditor是ueditor的亞種。我已經(jīng)實現(xiàn)了vue+neditor的封裝,下面記錄一下常用工具欄的配置。

1、配置方法
實例化編輯器的時候傳入 toolbars 參數(shù)

2、參數(shù)列表

名稱描述
anchor錨點
undo撤銷
redo重做
bold加粗
indent首行縮進(jìn)
snapscreen截圖
italic斜體
underline下劃線
strikethrough刪除線
subscript下標(biāo)
fontborder字符邊框
superscript上標(biāo)
formatmatch格式刷
source源代碼
blockquote引用
pasteplain純文本粘貼模式
selectall全選
print打印
preview預(yù)覽
horizontal分隔線
removeformat清除格式
time時間
date日期
unlink取消鏈接
insertrow前插入行
insertcol前插入列
mergeright右合并單元格
mergedown下合并單元格
deleterow刪除行
deletecol刪除列
splittorows拆分成行
splittocols拆分成列
splittocells完全拆分單元格
deletecaption刪除表格標(biāo)題
inserttitle插入標(biāo)題
mergecells合并多個單元格
deletetable刪除表格
cleardoc清空文檔
insertparagraphbeforetable表格前插入行
insertcode代碼語言
fontfamily字體
fontsize字號
paragraph段落格式
simpleupload單圖上傳
insertimage多圖上傳
edittable表格屬性
edittd單元格屬性
link超鏈接
emotion表情
spechars特殊字符
searchreplace查詢替換
mapBaidu地圖
gmapGoogle地圖
insertvideo視頻
help幫助
justifyleft居左對齊
justifyright居右對齊
justifycenter居中對齊
justifyjustify兩端對齊
forecolor字體顏色
backcolor背景色
insertorderedlist有序列表
insertunorderedlist無序列表
fullscreen全屏
directionalityltr從左向右輸入
directionalityrtl從右向左輸入
rowspacingtop段前距
rowspacingbottom段后距
pagebreak分頁
insertframe插入Iframe
imagenone默認(rèn)
imageleft左浮動
imageright右浮動
attachment附件
imagecenter居中
wordimage圖片轉(zhuǎn)存
lineheight行間距
edittip編輯提示
customstyle自定義標(biāo)題
autotypeset自動排版
webapp百度應(yīng)用
touppercase字母大寫
tolowercase字母小寫
background背景
template模板
scrawl涂鴉
music音樂
inserttable插入表格
drafts從草稿箱加載
charts圖表

3、常用配置代碼片段

toolbars: [['fullscreen', 'source', 'undo', 'redo', 'bold'] ] toolbars: [['fullscreen', 'source', 'undo', 'redo'],['bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc'] ] toolbars: [["link", //超鏈接"unlink", //取消鏈接"|","forecolor", //字體顏色"backcolor", //背景色"fontfamily", //字體"fontsize", //字號"|","bold", //加粗"italic", //斜體"underline", //下劃線"strikethrough", //刪除線"|","formatmatch", //格式刷"removeformat", //清除格式"|","insertorderedlist", //有序列表"insertunorderedlist", //無序列表"|","inserttable", //插入表格"paragraph", //段落格式"simpleupload", //單圖上傳"imagecenter", //居中"attachment", //附件"|","justifyleft", //居左對齊"justifycenter", //居中對齊"horizontal", //分隔線"|","blockquote", //引用"insertcode", //代碼語言"|","source", //源代碼"preview", //預(yù)覽"fullscreen" //全屏]] toolbars: [["fullscreen","source","undo","redo","indent", //首行縮進(jìn)"fontfamily", //字體"fontsize", //字號"insertimage" //單圖上傳],["bold","italic","underline","fontborder","strikethrough","superscript","subscript","removeformat","formatmatch","autotypeset","blockquote","pasteplain","|","forecolor","backcolor","insertorderedlist","insertunorderedlist","selectall","cleardoc"]]

總結(jié)

以上是生活随笔為你收集整理的neditor 自定义工具栏配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。