diff --git a/static/editor.md/editormd.js b/static/editor.md/editormd.js index 0ffd853..4ab7bd7 100644 --- a/static/editor.md/editormd.js +++ b/static/editor.md/editormd.js @@ -194,6 +194,7 @@ "undo" : "fa-undo", "redo" : "fa-repeat", "bold" : "fa-bold", + "mark" : "fa-paint-brush", "del" : "fa-strikethrough", "italic" : "fa-italic", "quote" : "fa-quote-left", @@ -204,8 +205,8 @@ "h4" : editormd.classPrefix + "bold", "h5" : editormd.classPrefix + "bold", "h6" : editormd.classPrefix + "bold", - "list-ul" : "fa-list-ul", - "list-ol" : "fa-list-ol", + "list-ul" : "fa-list-ul", + "list-ol" : "fa-list-ol", "hr" : "fa-minus", "link" : "fa-link", "reference-link" : "fa-anchor", @@ -229,6 +230,7 @@ "info" : "fa-info-circle" }, toolbarIconTexts : {}, + toolbarIconSvgs : {}, lang : { name : "zh-cn", @@ -238,6 +240,7 @@ undo : "撤销(Ctrl+Z)", redo : "重做(Ctrl+Y)", bold : "粗体", + mark : "文本高亮", del : "删除线", italic : "斜体", quote : "引用", @@ -1207,10 +1210,12 @@ var title = settings.lang.toolbar[index]; var iconTexts = settings.toolbarIconTexts[index]; + var iconSvgs = settings.toolbarIconSvgs[index]; var iconClass = settings.toolbarIconsClass[index]; title = (typeof title === "undefined") ? "" : title; iconTexts = (typeof iconTexts === "undefined") ? "" : iconTexts; + iconSvgs = (typeof iconSvgs === "undefined") ? "" : iconSvgs; iconClass = (typeof iconClass === "undefined") ? "" : iconClass; var menuItem = pullRight ? "
" + this.atLink(this.emoji(text)) + "
\n" ); + : ( (pageBreakReg.test(text)) ? this.pageBreak(text) : "" + this.atLink(this.mark(this.emoji(text))) + "
\n" ); }; // marked 解析代码块 markedRenderer.code = function (code, lang, escaped) { @@ -3887,7 +3919,7 @@ return ""; } - else if(/^echart/i.test(lang)){ // echart 图表 + else if(/^echart/i.test(lang)||/^echarts/i.test(lang)){ // echart 图表 var len = 9 || 32; var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; var maxPos = $chars.length; diff --git a/template/app_doc/docs_base.html b/template/app_doc/docs_base.html index 1057aeb..96fd02a 100644 --- a/template/app_doc/docs_base.html +++ b/template/app_doc/docs_base.html @@ -8,7 +8,7 @@ - + @@ -29,6 +29,9 @@ max-width: 350px; } {% endif %} + /* html{ + filter: invert(1) hue-rotate(180deg); + } */ - {% elif editor_mode == 2 %} diff --git a/template/app_doc/editor/tpl_editor_editormd.html b/template/app_doc/editor/tpl_editor_editormd.html index 90607ef..1bf42ed 100644 --- a/template/app_doc/editor/tpl_editor_editormd.html +++ b/template/app_doc/editor/tpl_editor_editormd.html @@ -19,7 +19,7 @@ var editormd_height = '800px' var editormd_toobar = [ "undo", "redo", "|", - "h2","h3","h4","h5", "bold", "del", "italic", "quote","kaiSpan", + "h2","h3","h4","h5", "bold", "del", "italic", "quote","kaiSpan","mark", "list-ul", "list-ol", "hr", "link", "reference-link", "mindmap","echart","imgUpload", "attachment" ,"multimedia","code", "code-block", "htmltable", "emoji", "html-entities", "pagebreak", diff --git a/template/app_doc/tag_doc_base.html b/template/app_doc/tag_doc_base.html index e25af6d..64768a7 100644 --- a/template/app_doc/tag_doc_base.html +++ b/template/app_doc/tag_doc_base.html @@ -21,7 +21,7 @@ - +