1
我試圖在TinyMCE的上下文菜單中添加文本顏色選擇器。 我不知道我是否可以使用tinyMCE中包含的插件,或者我必須手動編程顏色更改的行爲。在tinyMCE的上下文菜單中添加「文本顏色」
我已經試過這樣:
tinymce.init({
selector: id,
toolbar: false,
menubar: false,
statusbar: false,
width: "100",
height: "220",
content_css: "/content/texteditor.css",
plugins: [
"advlist autolink lists link charmap preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste imagetools",
"textcolor colorpicker"
],
contextmenu: "textcolor colorpicker",
setup: function (editor) {
editor.on('change', function() {
tinymce.triggerSave();
});
}
});
注意,我試圖在文本菜單中添加插件「的文字顏色顏色拾取」。
有一些方法可以在上下文菜單中添加文本顏色選擇器或顏色選擇器?
謝謝。