mindoc/static/editor.md/editormd.amd.min.js

2 lines
63 KiB
Go
Raw Permalink Normal View History

2024-03-27 16:26:01 +08:00
/*! Editor.md v1.7.17 | editormd.amd.min.js | Open source online markdown editor. | MIT License | By: IBM Skills Network | https://github.com/ibm-skills-network/editor.md | 2024-03-27 */
!function(e){"use strict";var t;"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define?define.amd?define(["jquery","marked","prettify","katex","raphael","underscore","flowchart","jqueryflowchart","sequenceDiagram","codemirror/lib/codemirror",(t="codemirror/mode/")+"css/css",t+"sass/sass",t+"shell/shell",t+"sql/sql",t+"clike/clike",t+"php/php",t+"xml/xml",t+"markdown/markdown",t+"javascript/javascript",t+"htmlmixed/htmlmixed",t+"gfm/gfm",t+"http/http",t+"go/go",t+"dart/dart",t+"coffeescript/coffeescript",t+"nginx/nginx",t+"python/python",t+"perl/perl",t+"lua/lua",t+"r/r",t+"ruby/ruby",t+"rst/rst",t+"smartymixed/smartymixed",t+"vb/vb",t+"vbscript/vbscript",t+"velocity/velocity",t+"xquery/xquery",t+"yaml/yaml",t+"erlang/erlang",t+"jade/jade",(t="codemirror/addon/")+"edit/trailingspace",t+"dialog/dialog",t+"search/searchcursor",t+"search/search",t+"scroll/annotatescrollbar",t+"search/matchesonscrollbar",t+"display/placeholder",t+"edit/closetag",t+"fold/foldcode",t+"fold/foldgutter",t+"fold/indent-fold",t+"fold/brace-fold",t+"fold/xml-fold",t+"fold/markdown-fold",t+"fold/comment-fold",t+"mode/overlay",t+"selection/active-line",t+"edit/closebrackets",t+"display/fullscreen",t+"search/match-highlighter"],e):define(["jquery"],e):window.editormd=e()}(function(){"function"==typeof define&&define.amd&&(v=arguments[0],marked=arguments[1],prettify=arguments[2],katex=arguments[3],Raphael=arguments[4],_=arguments[5],flowchart=arguments[6],CodeMirror=arguments[9]);var C,c,h,e,d,v="undefined"!=typeof jQuery?jQuery:Zepto;if(void 0!==v)return(C=function(e,t,i){return new C.fn.init(e,t,i)}).title=C.$name="Editor.md",C.version="1.7.17",C.homePage="https://pandao.github.io/editor.md/",C.classPrefix="editormd-",C.toolbarModes={full:["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","changetheme","info"],simple:["undo","redo","|","bold","del","italic","quote","uppercase","lowercase","|","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","|","watch","preview","fullscreen","|","help","changetheme","info"],mini:["undo","redo","|","watch","preview","|","help","changetheme","info"]},C.defaults={debug:!1,mode:"gfm",name:"",value:"",theme:"",editorTheme:"default",previewTheme:"",markdown:void 0,appendMarkdown:"",width:"100%",height:"100%",path:"./lib/",pluginPath:"",customPluginPath:"",delay:300,autoLoadModules:!0,watch:!0,placeholder:"Enjoy Markdown! coding now...",gotoLine:!0,codeFold:!1,autoHeight:!1,autoFocus:!0,autoCloseTags:!0,searchReplace:!0,syncScrolling:!0,readOnly:!1,tabSize:4,indentUnit:4,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,showTrailingSpace:!0,matchBrackets:!0,indentWithTabs:!0,styleSelectedText:!0,matchWordHighlight:!0,styleActiveLine:!0,dialogLockScreen:!0,dialogShowMask:!0,dialogDraggable:!0,dialogMaskBgColor:"#fff",dialogMaskOpacity:.1,fontSize:"13px",saveHTMLToTextarea:!1,disabledKeyMaps:[],onload:function(){},onresize:function(){},onchange:function(){},onwatch:null,onunwatch:null,onpreviewing:function(){},onCmChange:null,fixCodeBlocks:function(){},onpreviewed:function(){},onfullscreen:function(){},onfullscreenExit:function(){},onscroll:function(){},onpreviewscroll:function(){},imageUpload:!1,imageFormats:["jpg","jpeg","gif","png","bmp","webp"],imageUploadURL:"",crossDomainUpload:!1,uploadCallbackURL:"",toc:!0,tocm:!1,tocTitle:"",tocDropdown:!1,tocContainer:"",tocStartLevel:1,htmlDecode:!1,pageBreak:!0,atLink:!0,emailLink:!0,taskList:!1,emoji:!0,tex:!1,flowChart:!1,sequenceDiagram:!1,mermaid:!0,mindMap:!0,previewCodeHighlight:!0,toolbar:!0,toolbarAutoFixed:!0,titlebar:{left:{},center:{},right:{}},toolbarIcons:"full",toolbarTitles:{},toolbarHandlers:{ucwords:function(){return C.toolbarHandlers.ucwords},lowercase:function(){return C.toolbarHandlers.low