jodit 4.0.0-beta.86 → 4.0.0-beta.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -8
- package/README.md +5 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +46 -43
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +46 -43
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +43 -43
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +43 -43
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +85 -69
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/selection/interface.d.ts +5 -0
- package/esm/core/selection/interface.js +6 -1
- package/esm/core/selection/style/commit-style.js +2 -0
- package/esm/core/ui/button/button/button.js +2 -1
- package/esm/core/ui/button/group/group.js +2 -1
- package/esm/core/ui/button/tooltip/tooltip.js +2 -1
- package/esm/core/ui/element.js +2 -1
- package/esm/core/ui/form/block/block.js +2 -1
- package/esm/core/ui/form/form.js +2 -1
- package/esm/core/ui/form/inputs/area/area.js +2 -1
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -1
- package/esm/core/ui/form/inputs/file/file.js +2 -1
- package/esm/core/ui/form/inputs/input/input.js +2 -1
- package/esm/core/ui/form/inputs/select/select.js +2 -1
- package/esm/core/ui/group/group.js +2 -1
- package/esm/core/ui/group/list.js +2 -1
- package/esm/core/ui/group/separator.js +2 -1
- package/esm/core/ui/group/spacer.js +2 -1
- package/esm/core/ui/icon.js +4 -1
- package/esm/core/view/view.js +2 -1
- package/esm/jodit.js +3 -11
- package/esm/modules/context-menu/context-menu.js +2 -1
- package/esm/modules/dialog/dialog.js +2 -1
- package/esm/modules/file-browser/file-browser.js +2 -1
- package/esm/modules/image-editor/image-editor.js +2 -1
- package/esm/modules/messages/message.js +2 -1
- package/esm/modules/messages/messages.js +2 -1
- package/esm/modules/status-bar/status-bar.js +2 -1
- package/esm/modules/toolbar/button/button.js +2 -1
- package/esm/modules/toolbar/button/content.js +2 -1
- package/esm/modules/toolbar/button/select/select.js +2 -1
- package/esm/modules/toolbar/collection/collection.js +2 -1
- package/esm/modules/toolbar/collection/editor-collection.js +2 -1
- package/esm/plugins/backspace/interface.d.ts +9 -8
- package/esm/plugins/resize-handler/resize-handler.js +2 -1
- package/esm/plugins/search/ui/search.js +2 -1
- package/esm/plugins/size/size.js +2 -1
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.js +34 -30
- package/examples/arabic.lang.html +111 -64
- package/examples/assets/app.css +1 -3
- package/examples/color-picker.html +122 -72
- package/examples/custom-icons.html +204 -157
- package/examples/custom-toolbar.html +110 -63
- package/examples/example.default.html +4 -3
- package/examples/fullsize.html +107 -60
- package/examples/index.html +6 -5
- package/examples/inline-mode.html +193 -92
- package/examples/oneinstance.html +138 -90
- package/examples/theme.html +6 -5
- package/package.json +1 -1
- package/types/core/selection/interface.d.ts +5 -0
- package/types/plugins/backspace/interface.d.ts +9 -8
- package/examples/assets/prism.css +0 -200
- package/examples/assets/prism.js +0 -1254
|
@@ -4,170 +4,217 @@
|
|
|
4
4
|
* License GNU General Public License version 2 or later;
|
|
5
5
|
* Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
|
|
6
6
|
-->
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
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
|
-
|
|
7
|
+
<html lang="en-US">
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="UTF-8" />
|
|
10
|
+
<meta
|
|
11
|
+
name="viewport"
|
|
12
|
+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
|
13
|
+
/>
|
|
14
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
15
|
+
<title>Jodit Example - Custom Icons</title>
|
|
16
|
+
<link rel="icon" type="image/png" href="assets/icon.png" />
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<header>
|
|
20
|
+
<nav>
|
|
21
|
+
<ul class="container">
|
|
22
|
+
<li>
|
|
23
|
+
<a href="https://xdsoft.net/jodit/">Jodit homepage</a>
|
|
24
|
+
</li>
|
|
25
|
+
<li>
|
|
26
|
+
<a href="https://xdsoft.net/jodit/play.html"
|
|
27
|
+
>Playground</a
|
|
28
|
+
>
|
|
29
|
+
</li>
|
|
30
|
+
<li>
|
|
31
|
+
<a href="https://xdsoft.net/jodit/docs/"
|
|
32
|
+
>Documentation</a
|
|
33
|
+
>
|
|
34
|
+
</li>
|
|
35
|
+
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
36
|
+
<li>
|
|
37
|
+
<a
|
|
38
|
+
href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md"
|
|
39
|
+
>Changelog</a
|
|
40
|
+
>
|
|
41
|
+
</li>
|
|
42
|
+
<li>
|
|
43
|
+
<a href="#examples">Examples</a>
|
|
44
|
+
<ul id="examples">
|
|
45
|
+
<!-- see app.js-->
|
|
46
|
+
</ul>
|
|
47
|
+
</li>
|
|
48
|
+
<li style="float: right">
|
|
49
|
+
<a href="https://github.com/xdan/jodit/releases/latest"
|
|
50
|
+
>Download</a
|
|
51
|
+
>
|
|
52
|
+
</li>
|
|
53
|
+
</ul>
|
|
54
|
+
</nav>
|
|
55
|
+
</header>
|
|
56
|
+
<div id="main_container" class="container">
|
|
57
|
+
<div id="introduction">
|
|
58
|
+
<h3>HTML</h3>
|
|
59
|
+
<pre><code class="language-markup">
|
|
36
60
|
<script src="https://use.fontawesome.com/c1f20c2bd7.js"></script>
|
|
37
61
|
<textarea id="editor"></textarea>
|
|
38
62
|
</code></pre>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var code = clearName;
|
|
63
|
+
<h3>JavaScript</h3>
|
|
64
|
+
<pre><code class="language-javascript">
|
|
65
|
+
const editor = Jodit.make('#editor', {
|
|
66
|
+
getIcon: function (name, clearName) {
|
|
67
|
+
let code = clearName;
|
|
45
68
|
|
|
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
|
-
|
|
69
|
+
switch (clearName) {
|
|
70
|
+
case 'redo':
|
|
71
|
+
code = 'rotate-right';
|
|
72
|
+
break;
|
|
73
|
+
case 'video':
|
|
74
|
+
code = 'video-camera';
|
|
75
|
+
break;
|
|
76
|
+
case 'copyformat':
|
|
77
|
+
code = 'clone';
|
|
78
|
+
break;
|
|
79
|
+
case 'about':
|
|
80
|
+
code = 'question';
|
|
81
|
+
break;
|
|
82
|
+
case 'selectall':
|
|
83
|
+
code = 'legal';
|
|
84
|
+
break;
|
|
85
|
+
case 'symbol':
|
|
86
|
+
return '<span style="text-align: center;font-size:14px;">Ω</span>';
|
|
87
|
+
case 'hr':
|
|
88
|
+
code = 'minus';
|
|
89
|
+
break;
|
|
90
|
+
case 'left':
|
|
91
|
+
case 'right':
|
|
92
|
+
case 'justify':
|
|
93
|
+
case 'center':
|
|
94
|
+
code = 'align-' + name;
|
|
95
|
+
break;
|
|
96
|
+
case 'brush':
|
|
97
|
+
code = 'tint';
|
|
98
|
+
break;
|
|
99
|
+
case 'fontsize':
|
|
100
|
+
code = 'text-height';
|
|
101
|
+
break;
|
|
102
|
+
case 'ul':
|
|
103
|
+
case 'ol':
|
|
104
|
+
code = 'list-' + name;
|
|
105
|
+
break;
|
|
106
|
+
case 'source':
|
|
107
|
+
code = 'code';
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
87
110
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
editor.setEditorValue('<p>start</p>')
|
|
111
|
+
return '<i style="font-size:14px" class="fa fa-' + code + ' fa-xs"></i>';
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
editor.setEditorValue('<p>start</p>')
|
|
93
115
|
</code></pre>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
</div>
|
|
99
|
-
<footer>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<
|
|
116
|
+
</div>
|
|
117
|
+
<div class="result">
|
|
118
|
+
<textarea id="area_editor"></textarea>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<footer>
|
|
122
|
+
<nav>
|
|
123
|
+
<ul class="container">
|
|
124
|
+
<li>
|
|
125
|
+
<a href="https://xdsoft.net/jodit/">Jodit homepage</a>
|
|
126
|
+
</li>
|
|
127
|
+
<li>
|
|
128
|
+
<a href="https://xdsoft.net/jodit/play.html"
|
|
129
|
+
>Playground</a
|
|
130
|
+
>
|
|
131
|
+
</li>
|
|
132
|
+
<li>
|
|
133
|
+
<a href="https://xdsoft.net/jodit/docs/"
|
|
134
|
+
>Documentation</a
|
|
135
|
+
>
|
|
136
|
+
</li>
|
|
137
|
+
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
138
|
+
<li>
|
|
139
|
+
<a
|
|
140
|
+
href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md"
|
|
141
|
+
>Changelog</a
|
|
142
|
+
>
|
|
143
|
+
</li>
|
|
144
|
+
<li style="float: right">
|
|
145
|
+
<a href="https://github.com/xdan/jodit/releases/latest"
|
|
146
|
+
>Download</a
|
|
147
|
+
>
|
|
148
|
+
</li>
|
|
149
|
+
</ul>
|
|
150
|
+
</nav>
|
|
151
|
+
</footer>
|
|
152
|
+
</body>
|
|
153
|
+
<link rel="stylesheet" href="./es2015/jodit.min.css" />
|
|
154
|
+
<link rel="stylesheet" href="assets/app.css" />
|
|
155
|
+
<link
|
|
156
|
+
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i"
|
|
157
|
+
rel="stylesheet"
|
|
158
|
+
/>
|
|
159
|
+
<script src="https://use.fontawesome.com/c1f20c2bd7.js"></script>
|
|
116
160
|
|
|
117
|
-
<script src="./es2015/jodit.min.js"></script>
|
|
118
|
-
<script src="
|
|
119
|
-
<script src="assets/app.js"></script>
|
|
120
|
-
<script>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var code = clearName;
|
|
161
|
+
<script src="./es2015/jodit.min.js"></script>
|
|
162
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js"></script>
|
|
163
|
+
<script src="assets/app.js"></script>
|
|
164
|
+
<script>
|
|
165
|
+
const editor = Jodit.make('#area_editor', {
|
|
166
|
+
getIcon: (name, clearName) => {
|
|
167
|
+
let code = clearName || name;
|
|
125
168
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
switch (clearName) {
|
|
170
|
+
case 'redo':
|
|
171
|
+
code = 'rotate-right';
|
|
172
|
+
break;
|
|
173
|
+
case 'video':
|
|
174
|
+
code = 'video-camera';
|
|
175
|
+
break;
|
|
176
|
+
case 'copyformat':
|
|
177
|
+
code = 'clone';
|
|
178
|
+
break;
|
|
179
|
+
case 'about':
|
|
180
|
+
code = 'question';
|
|
181
|
+
break;
|
|
182
|
+
case 'selectall':
|
|
183
|
+
code = 'legal';
|
|
184
|
+
break;
|
|
185
|
+
case 'symbol':
|
|
186
|
+
return '<span style="text-align: center;font-size:14px;">Ω</span>';
|
|
187
|
+
case 'hr':
|
|
188
|
+
code = 'minus';
|
|
189
|
+
break;
|
|
190
|
+
case 'left':
|
|
191
|
+
case 'right':
|
|
192
|
+
case 'justify':
|
|
193
|
+
case 'center':
|
|
194
|
+
code = 'align-' + name;
|
|
195
|
+
break;
|
|
196
|
+
case 'brush':
|
|
197
|
+
code = 'tint';
|
|
198
|
+
break;
|
|
199
|
+
case 'fontsize':
|
|
200
|
+
code = 'text-height';
|
|
201
|
+
break;
|
|
202
|
+
case 'ul':
|
|
203
|
+
case 'ol':
|
|
204
|
+
code = 'list-' + name;
|
|
205
|
+
break;
|
|
206
|
+
case 'source':
|
|
207
|
+
code = 'code';
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
167
210
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
211
|
+
return (
|
|
212
|
+
'<i style="font-size:14px" class="fa fa-' +
|
|
213
|
+
code +
|
|
214
|
+
' fa-xs"></i>'
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
</script>
|
|
219
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/themes/prism.min.css" />
|
|
173
220
|
</html>
|
|
@@ -4,39 +4,63 @@
|
|
|
4
4
|
* License GNU General Public License version 2 or later;
|
|
5
5
|
* Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
|
|
6
6
|
-->
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
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
|
-
|
|
7
|
+
<html lang="en-US">
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="UTF-8" />
|
|
10
|
+
<meta
|
|
11
|
+
name="viewport"
|
|
12
|
+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
|
13
|
+
/>
|
|
14
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
15
|
+
<title>Jodit Example</title>
|
|
16
|
+
<link rel="icon" type="image/png" href="assets/icon.png" />
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<header>
|
|
20
|
+
<nav>
|
|
21
|
+
<ul class="container">
|
|
22
|
+
<li>
|
|
23
|
+
<a href="https://xdsoft.net/jodit/">Jodit homepage</a>
|
|
24
|
+
</li>
|
|
25
|
+
<li>
|
|
26
|
+
<a href="https://xdsoft.net/jodit/play.html"
|
|
27
|
+
>Playground</a
|
|
28
|
+
>
|
|
29
|
+
</li>
|
|
30
|
+
<li>
|
|
31
|
+
<a href="https://xdsoft.net/jodit/docs/"
|
|
32
|
+
>Documentation</a
|
|
33
|
+
>
|
|
34
|
+
</li>
|
|
35
|
+
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
36
|
+
<li>
|
|
37
|
+
<a
|
|
38
|
+
href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md"
|
|
39
|
+
>Changelog</a
|
|
40
|
+
>
|
|
41
|
+
</li>
|
|
42
|
+
<li>
|
|
43
|
+
<a href="#examples">Examples</a>
|
|
44
|
+
<ul id="examples">
|
|
45
|
+
<!-- see app.js-->
|
|
46
|
+
</ul>
|
|
47
|
+
</li>
|
|
48
|
+
<li style="float: right">
|
|
49
|
+
<a href="https://github.com/xdan/jodit/releases/latest"
|
|
50
|
+
>Download</a
|
|
51
|
+
>
|
|
52
|
+
</li>
|
|
53
|
+
</ul>
|
|
54
|
+
</nav>
|
|
55
|
+
</header>
|
|
56
|
+
<div id="main_container" class="container">
|
|
57
|
+
<div id="introduction">
|
|
58
|
+
<h3>HTML</h3>
|
|
59
|
+
<pre><code class="language-markup">
|
|
36
60
|
<textarea id="editor"></textarea>
|
|
37
61
|
</code></pre>
|
|
38
|
-
|
|
39
|
-
|
|
62
|
+
<h3>JavaScript</h3>
|
|
63
|
+
<pre><code class="language-javascript">
|
|
40
64
|
const editor = Jodit.make('#editor', {
|
|
41
65
|
buttons: 'source,about,print,bold',
|
|
42
66
|
buttonsMD: 'source,about,print',
|
|
@@ -44,37 +68,60 @@
|
|
|
44
68
|
buttonsXS: 'source'
|
|
45
69
|
});
|
|
46
70
|
</code></pre>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</div>
|
|
52
|
-
<footer>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
</div>
|
|
72
|
+
<div class="result">
|
|
73
|
+
<textarea id="area_editor"></textarea>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<footer>
|
|
77
|
+
<nav>
|
|
78
|
+
<ul class="container">
|
|
79
|
+
<li>
|
|
80
|
+
<a href="https://xdsoft.net/jodit/">Jodit homepage</a>
|
|
81
|
+
</li>
|
|
82
|
+
<li>
|
|
83
|
+
<a href="https://xdsoft.net/jodit/play.html"
|
|
84
|
+
>Playground</a
|
|
85
|
+
>
|
|
86
|
+
</li>
|
|
87
|
+
<li>
|
|
88
|
+
<a href="https://xdsoft.net/jodit/docs/"
|
|
89
|
+
>Documentation</a
|
|
90
|
+
>
|
|
91
|
+
</li>
|
|
92
|
+
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
93
|
+
<li>
|
|
94
|
+
<a
|
|
95
|
+
href="https://github.com/xdan/jodit/blob/main/CHANGELOG.md"
|
|
96
|
+
>Changelog</a
|
|
97
|
+
>
|
|
98
|
+
</li>
|
|
99
|
+
<li style="float: right">
|
|
100
|
+
<a href="https://github.com/xdan/jodit/releases/latest"
|
|
101
|
+
>Download</a
|
|
102
|
+
>
|
|
103
|
+
</li>
|
|
104
|
+
</ul>
|
|
105
|
+
</nav>
|
|
106
|
+
</footer>
|
|
107
|
+
</body>
|
|
108
|
+
<link rel="stylesheet" href="./es2015/jodit.min.css" />
|
|
109
|
+
<link rel="stylesheet" href="assets/app.css" />
|
|
110
|
+
<link
|
|
111
|
+
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i"
|
|
112
|
+
rel="stylesheet"
|
|
113
|
+
/>
|
|
68
114
|
|
|
69
|
-
<script src="./es2015/jodit.min.js"></script>
|
|
70
|
-
<script src="
|
|
71
|
-
<script src="assets/app.js"></script>
|
|
72
|
-
<script>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
</script>
|
|
115
|
+
<script src="./es2015/jodit.min.js"></script>
|
|
116
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js"></script>
|
|
117
|
+
<script src="assets/app.js"></script>
|
|
118
|
+
<script>
|
|
119
|
+
const editor = Jodit.make('#area_editor', {
|
|
120
|
+
buttons: 'source,about,print,bold',
|
|
121
|
+
buttonsMD: 'source,about,print',
|
|
122
|
+
buttonsSM: 'source,about',
|
|
123
|
+
buttonsXS: 'source'
|
|
124
|
+
});
|
|
125
|
+
</script>
|
|
126
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/themes/prism.min.css" />
|
|
80
127
|
</html>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4
4
|
* License GNU General Public License version 2 or later;
|
|
5
5
|
* Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
|
|
6
6
|
-->
|
|
7
|
-
<html>
|
|
7
|
+
<html lang="en-US">
|
|
8
8
|
<head>
|
|
9
9
|
<meta charset="UTF-8" />
|
|
10
10
|
<meta
|
|
@@ -111,11 +111,12 @@
|
|
|
111
111
|
/>
|
|
112
112
|
|
|
113
113
|
<script src="./es2015/jodit.min.js"></script>
|
|
114
|
-
<script src="
|
|
114
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js"></script>
|
|
115
115
|
<script src="assets/app.js"></script>
|
|
116
116
|
<script>
|
|
117
117
|
const editor = Jodit.make('#area_editor', {
|
|
118
118
|
//
|
|
119
119
|
});
|
|
120
120
|
</script>
|
|
121
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/themes/prism.min.css" />
|
|
121
122
|
</html>
|