TinyMCE 工具欄配置


plugins: {
type: [String, Array],
default: 'lists image media wordcount advlist bbcode code charmap emoticons insertdatetime preview'
},
toolbar: {
type: [String, Array],
default: 'undo redo | fontselect fontsizeselect bold italic | forecolor backcolor | superscript subscript charmap insertdatetime emoticons| lists image media | numlist | preview code removeformat | alignleft aligncenter alignright alignjustify | bullist outdent indent'
}

  

 
init: {
        // language_url: '/static/tinymce/langs/zh_CN.js',
        // language: 'zh_CN',
        skin_url: '/static/tinymce/skins/ui/oxide',
        height: 150,
        plugins: this.plugins,
        toolbar: this.toolbar,

  

配置項 所屬插件 描述
newdocument 核心 創建新文檔
bold 核心 加粗
italic 核心 斜體
underline 核心 下划線
strikethrough 核心 刪除線
alignleft 核心 居左
aligncenter 核心 居中
alignright 核心 居右
alignjustify 核心 兩端對齊
alignnone 核心 清除
styleselect 核心 格式選擇下拉框(縮進、行高)
formatselect 核心 段落選擇下拉框(段落、標題)
fontselect 核心 字體選擇下拉框
fontsizeselect 核心 字號選擇下拉框
cut 核心 剪切
copy 核心 復制
paste 核心 粘貼
outdent 核心 減少縮進
indent 核心 增加縮進
blockquote 核心 引用
undo 核心 撤消
redo 核心 恢復
removeformat 核心 清除格式
subscript 核心 下標
superscript 核心 上標
visualaid 核心 網格線
insert 核心 插入的集合按鈕
hr hr 水平線
bullist lists 無序列表
numlist lists 有序列表
link link 添加和修改鏈接
unlink link 去除鏈接格式
openlink link 打開選中鏈接
image image 添加和修改圖片
charmap charmap 特殊符號
pastetext paste 粘貼純文本
print print 打印
preview preview 預覽
anchor anchor 作者
pagebreak pagebreak 分頁符
spellchecker spellchecker 拼寫檢查
searchreplace searchreplace 搜索
visualblocks visualblocks 隱藏塊級區域開關
visualchars visualchars 隱藏字符串開關.
code code 代碼
help help 幫助
fullscreen fullscreen 全屏
insertdatetime insertdatetime 插入時間
media media 插入/編輯媒體文件
nonbreaking nonbreaking 不間斷空格
save save 保存(ajax)
cancel save 取消保存
table table 插入/編輯表格
tabledelete table 刪除表格
tablecellprops table 單元格屬性
tablemergecells table 合並單元格
tablesplitcells table 拆分單元格
tableinsertrowbefore table 在當前行之前插入一個新行
tableinsertrowafter table 在當前行之后插入一個新行
tabledeleterow table 刪除當前行
tablerowprops table 行屬性
tablecutrow table 剪切選定行
tablecopyrow table 復制選定行
tablepasterowbefore table 在當前行之前粘貼行
tablepasterowafter table 在當前行之后粘貼行
tableinsertcolbefore table 在當前列之前插入一個列
tableinsertcolafter table 在當前列之后插入一個列.
tabledeletecol table 刪除當前列
rotateleft imagetools 逆時針旋轉當前圖像
rotateright imagetools 順時針旋轉當前圖像
flipv imagetools 垂直翻轉當前圖像
fliph imagetools 水平翻轉當前圖像
editimage imagetools 打開圖像編輯對話框
imageoptions imagetools 打開圖像配置對話框
fullpage fullpage 完整頁面的文檔屬性
ltr directionality 設置編寫方向從左到右
rtl directionality 設置編寫方向從右到左
emoticons emoticons 表情
template template 插入模板
forecolor textcolor 文本顏色
backcolor textcolor 背景顏色
restoredraft restoredraft 恢復到最新的自動保存草稿
insertfile moxiemanager 引入文件
a11ycheck a11ychecker 檢查訪問性
toc toc 插入目錄
quickimage inlite 插入本地圖像
quicktable inlite 插入2X2的表格
quicklink inlite 插入連接


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM