,toolbarIcons: function() {
//集合添加按钮方式
// var toolBarIconArray=editormd.toolbarModes[“full”];
// toolBarIconArray.push(“cstmVoteBtn”);
// return toolBarIconArray;
//可排序添加按钮方式
var icons = [
“undo”, “redo”, “|”,
“bold”, “del”, “italic”, “quote”, “ucwords”, “uppercase”, “lowercase”, “|”,
“h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “|”,
“list-ul”, “list-ol”, “hr”, “|”,
“link”, “reference-link”, “image”, “code”, “preformatted-text”, “code-block”, “table”, “datetime”, “emoji”, “html-entities”, “pagebreak”, “|”,
“goto-line”, “watch”, “preview”, “fullscreen”, “clear”, “search”, “|”,
“help”, “info”,“|”,“cstmVoteBtn”
];
return icons;
},
toolbarIconTexts: {
cstmVoteBtn: “投票”
},
toolbarHandlers: {
cstmVoteBtn:function(cm, icon, cursor, selection) {
modalShow();
}
}
editormd自定义按钮
于 2023-07-20 14:31:57 首次发布