1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
| (function(){
| var factory = function (exports) {
| var lang = {
| name : "en",
| description : "Open source online Markdown editor.",
| tocTitle : "Table of Contents",
| toolbar : {
| undo : "Undo(Ctrl+Z)",
| redo : "Redo(Ctrl+Y)",
| bold : "Bold",
| del : "Strikethrough",
| italic : "Italic",
| quote : "Block quote",
| ucwords : "Words first letter convert to uppercase",
| uppercase : "Selection text convert to uppercase",
| lowercase : "Selection text convert to lowercase",
| h1 : "Heading 1",
| h2 : "Heading 2",
| h3 : "Heading 3",
| h4 : "Heading 4",
| h5 : "Heading 5",
| h6 : "Heading 6",
| "list-ul" : "Unordered list",
| "list-ol" : "Ordered list",
| hr : "Horizontal rule",
| link : "Link",
| "reference-link" : "Reference link",
| image : "Image",
| code : "Code inline",
| "preformatted-text" : "Preformatted text / Code block (Tab indent)",
| "code-block" : "Code block (Multi-languages)",
| table : "Tables",
| datetime : "Datetime",
| emoji : "Emoji",
| "html-entities" : "HTML Entities",
| pagebreak : "Page break",
| watch : "Unwatch",
| unwatch : "Watch",
| preview : "HTML Preview (Press Shift + ESC exit)",
| fullscreen : "Fullscreen (Press ESC exit)",
| clear : "Clear",
| search : "Search",
| help : "Help",
| info : "About " + exports.title
| },
| buttons : {
| enter : "Enter",
| cancel : "Cancel",
| close : "Close"
| },
| dialog : {
| link : {
| title : "Link",
| url : "Address",
| urlTitle : "Title",
| urlEmpty : "Error: Please fill in the link address."
| },
| referenceLink : {
| title : "Reference link",
| name : "Name",
| url : "Address",
| urlId : "ID",
| urlTitle : "Title",
| nameEmpty: "Error: Reference name can't be empty.",
| idEmpty : "Error: Please fill in reference link id.",
| urlEmpty : "Error: Please fill in reference link url address."
| },
| image : {
| title : "Image",
| url : "Address",
| link : "Link",
| alt : "Title",
| uploadButton : "Upload",
| imageURLEmpty : "Error: picture url address can't be empty.",
| uploadFileEmpty : "Error: upload pictures cannot be empty!",
| formatNotAllowed : "Error: only allows to upload pictures file, upload allowed image file format:"
| },
| preformattedText : {
| title : "Preformatted text / Codes",
| emptyAlert : "Error: Please fill in the Preformatted text or content of the codes."
| },
| codeBlock : {
| title : "Code block",
| selectLabel : "Languages: ",
| selectDefaultText : "select a code language...",
| otherLanguage : "Other languages",
| unselectedLanguageAlert : "Error: Please select the code language.",
| codeEmptyAlert : "Error: Please fill in the code content."
| },
| htmlEntities : {
| title : "HTML Entities"
| },
| help : {
| title : "Help"
| }
| }
| };
|
| exports.defaults.lang = lang;
| };
|
| // CommonJS/Node.js
| if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
| {
| module.exports = factory;
| }
| else if (typeof define === "function") // AMD/CMD/Sea.js
| {
| if (define.amd) { // for Require.js
|
| define(["editormd"], function(editormd) {
| factory(editormd);
| });
|
| } else { // for Sea.js
| define(function(require) {
| var editormd = require("../editormd");
| factory(editormd);
| });
| }
| }
| else
| {
| factory(window.editormd);
| }
|
| })();
|
|