jodit 3.8.1 → 3.8.2
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/.idea/codeStyles/Project.xml +68 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/dictionaries/v_chupurnov.xml +10 -0
- package/.idea/encodings.xml +4 -0
- package/.idea/inspectionProfiles/Project_Default.xml +118 -0
- package/.idea/jodit.iml +12 -0
- package/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/markdown-navigator-enh.xml +29 -0
- package/.idea/markdown-navigator.xml +55 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +4 -0
- package/.idea/workspace.xml +1264 -0
- package/build/jodit.css +2 -2
- package/build/jodit.es2018.css +1 -1
- package/build/jodit.es2018.en.css +1 -1
- package/build/jodit.es2018.en.js +4 -4
- package/build/jodit.es2018.en.min.js +2 -2
- package/build/jodit.es2018.js +4 -4
- package/build/jodit.es2018.min.js +2 -2
- package/build/jodit.js +4 -4
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +2 -2
- package/package.json +2 -2
- package/.travis.yml +0 -7
- package/bower.json +0 -33
- package/build.js +0 -39
- package/docker/Dockerfile +0 -11
- package/docker/README.md +0 -45
- package/docker/build +0 -3
- package/docker/install +0 -7
- package/docker/start +0 -3
- package/docker/test +0 -3
- package/docker/uninstall +0 -3
- package/examples/arabic.lang.html +0 -76
- package/examples/assets/app.css +0 -175
- package/examples/assets/app.js +0 -57
- package/examples/assets/download.jpg +0 -0
- package/examples/assets/icon.png +0 -0
- package/examples/assets/logo.png +0 -0
- package/examples/assets/prism.css +0 -200
- package/examples/assets/prism.js +0 -1254
- package/examples/color-picker.html +0 -139
- package/examples/custom-icons.html +0 -173
- package/examples/custom-toolbar.html +0 -80
- package/examples/example.default.html +0 -75
- package/examples/fullsize.html +0 -75
- package/examples/index.html +0 -176
- package/examples/inline-mode.html +0 -116
- package/examples/oneinstance.html +0 -125
- package/icons.html +0 -50
- package/karma.conf.js +0 -157
- package/make.js +0 -10
- package/server.js +0 -101
- package/test/bootstrap.js +0 -1167
- package/test/test.html +0 -102
- package/test/test.index.html +0 -11
- package/test/tests/acceptance/clipboardTest.js +0 -1234
- package/test/tests/acceptance/commandsTest.js +0 -647
- package/test/tests/acceptance/creatorTest.js +0 -103
- package/test/tests/acceptance/deleteBackSpaceTest.js +0 -1289
- package/test/tests/acceptance/dialogTest.js +0 -188
- package/test/tests/acceptance/editorTest.js +0 -855
- package/test/tests/acceptance/enterTest.js +0 -1088
- package/test/tests/acceptance/eventsTest.js +0 -1246
- package/test/tests/acceptance/filebrowserTest.js +0 -1309
- package/test/tests/acceptance/i18nTest.js +0 -81
- package/test/tests/acceptance/iframeTest.js +0 -306
- package/test/tests/acceptance/imageTest.js +0 -1649
- package/test/tests/acceptance/inlineModeTest.js +0 -826
- package/test/tests/acceptance/interfaceTest.js +0 -119
- package/test/tests/acceptance/mobileTest.js +0 -229
- package/test/tests/acceptance/plugins/classSpan.js +0 -220
- package/test/tests/acceptance/plugins/cleanHtml.js +0 -351
- package/test/tests/acceptance/plugins/color.js +0 -188
- package/test/tests/acceptance/plugins/dragAndDropElement.js +0 -172
- package/test/tests/acceptance/plugins/focus.js +0 -115
- package/test/tests/acceptance/plugins/font.js +0 -316
- package/test/tests/acceptance/plugins/image.js +0 -79
- package/test/tests/acceptance/plugins/indent.js +0 -179
- package/test/tests/acceptance/plugins/inline-popup.js +0 -578
- package/test/tests/acceptance/plugins/insert.js +0 -17
- package/test/tests/acceptance/plugins/limit.js +0 -164
- package/test/tests/acceptance/plugins/link.js +0 -1640
- package/test/tests/acceptance/plugins/orderedList.js +0 -290
- package/test/tests/acceptance/plugins/placeholder.js +0 -138
- package/test/tests/acceptance/plugins/resizer.js +0 -329
- package/test/tests/acceptance/plugins/search.js +0 -623
- package/test/tests/acceptance/plugins/size.js +0 -344
- package/test/tests/acceptance/plugins/source.js +0 -218
- package/test/tests/acceptance/plugins/stat.js +0 -120
- package/test/tests/acceptance/plugins/tooltip.js +0 -97
- package/test/tests/acceptance/plugins/wrapTextNodes.js +0 -105
- package/test/tests/acceptance/pluginsTest.js +0 -2219
- package/test/tests/acceptance/selectionTest.js +0 -862
- package/test/tests/acceptance/statesTest.js +0 -310
- package/test/tests/acceptance/tableTest.js +0 -1988
- package/test/tests/acceptance/toolbarTest.js +0 -1747
- package/test/tests/acceptance/undoredoTest.js +0 -217
- package/test/tests/acceptance/uploaderTest.js +0 -187
- package/test/tests/artio.jpg +0 -0
- package/test/tests/units/helpersTest.js +0 -771
- package/test/tests/units/modules/dom.js +0 -282
- package/test/tests/units/objectObserverTest.js +0 -533
- package/test/tests/units/popupTest.js +0 -211
- package/test/tests/units/positionTest.js +0 -238
- package/test/tests/units/styleTest.js +0 -1361
- package/webpack.config.js +0 -308
package/examples/index.html
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<!--
|
|
3
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4
|
-
* License GNU General Public License version 2 or later;
|
|
5
|
-
* Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
|
|
6
|
-
-->
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8"/>
|
|
10
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
|
|
11
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
|
12
|
-
<title>Jodit All options</title>
|
|
13
|
-
<link rel="icon" type="image/png" href="assets/icon.png" />
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<header>
|
|
17
|
-
<nav>
|
|
18
|
-
<ul class="container">
|
|
19
|
-
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
20
|
-
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
21
|
-
<li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
|
|
22
|
-
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
23
|
-
<li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
|
|
24
|
-
<li>
|
|
25
|
-
<a href="javascript:void(0)">Examples</a>
|
|
26
|
-
<ul id="examples"><!-- see app.js--></ul>
|
|
27
|
-
</li>
|
|
28
|
-
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
29
|
-
</ul>
|
|
30
|
-
</nav>
|
|
31
|
-
</header>
|
|
32
|
-
<div id="main_container" class="container">
|
|
33
|
-
<div id="introduction">
|
|
34
|
-
<h3>HTML</h3>
|
|
35
|
-
<pre><code class="language-markup">
|
|
36
|
-
<textarea id="editor"></textarea>
|
|
37
|
-
</code></pre>
|
|
38
|
-
<h3>JavaScript</h3>
|
|
39
|
-
<pre><code class="language-javascript">
|
|
40
|
-
var editor = new Jodit('#editor', {
|
|
41
|
-
zIndex: 0,
|
|
42
|
-
readonly: false,
|
|
43
|
-
activeButtonsInReadOnly: ['source', 'fullsize', 'print', 'about', 'dots'],
|
|
44
|
-
toolbarButtonSize: 'middle',
|
|
45
|
-
theme: 'default',
|
|
46
|
-
saveModeInCookie: false,
|
|
47
|
-
spellcheck: true,
|
|
48
|
-
editorCssClass: false,
|
|
49
|
-
triggerChangeEvent: true,
|
|
50
|
-
width: 'auto',
|
|
51
|
-
height: 'auto',
|
|
52
|
-
minHeight: 100,
|
|
53
|
-
direction: '',
|
|
54
|
-
language: 'auto',
|
|
55
|
-
debugLanguage: false,
|
|
56
|
-
i18n: 'en',
|
|
57
|
-
tabIndex: -1,
|
|
58
|
-
toolbar: true,
|
|
59
|
-
enter: "P",
|
|
60
|
-
defaultMode: Jodit.MODE_WYSIWYG,
|
|
61
|
-
useSplitMode: false,
|
|
62
|
-
colors: {
|
|
63
|
-
greyscale: ['#000000', '#434343', '#666666', '#999999', '#B7B7B7', '#CCCCCC', '#D9D9D9', '#EFEFEF', '#F3F3F3', '#FFFFFF'],
|
|
64
|
-
palette: ['#980000', '#FF0000', '#FF9900', '#FFFF00', '#00F0F0', '#00FFFF', '#4A86E8', '#0000FF', '#9900FF', '#FF00FF'],
|
|
65
|
-
full: [
|
|
66
|
-
'#E6B8AF', '#F4CCCC', '#FCE5CD', '#FFF2CC', '#D9EAD3', '#D0E0E3', '#C9DAF8', '#CFE2F3', '#D9D2E9', '#EAD1DC',
|
|
67
|
-
'#DD7E6B', '#EA9999', '#F9CB9C', '#FFE599', '#B6D7A8', '#A2C4C9', '#A4C2F4', '#9FC5E8', '#B4A7D6', '#D5A6BD',
|
|
68
|
-
'#CC4125', '#E06666', '#F6B26B', '#FFD966', '#93C47D', '#76A5AF', '#6D9EEB', '#6FA8DC', '#8E7CC3', '#C27BA0',
|
|
69
|
-
'#A61C00', '#CC0000', '#E69138', '#F1C232', '#6AA84F', '#45818E', '#3C78D8', '#3D85C6', '#674EA7', '#A64D79',
|
|
70
|
-
'#85200C', '#990000', '#B45F06', '#BF9000', '#38761D', '#134F5C', '#1155CC', '#0B5394', '#351C75', '#733554',
|
|
71
|
-
'#5B0F00', '#660000', '#783F04', '#7F6000', '#274E13', '#0C343D', '#1C4587', '#073763', '#20124D', '#4C1130'
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
colorPickerDefaultTab: 'background',
|
|
75
|
-
imageDefaultWidth: 300,
|
|
76
|
-
removeButtons: [],
|
|
77
|
-
disablePlugins: [],
|
|
78
|
-
extraButtons: [],
|
|
79
|
-
sizeLG: 900,
|
|
80
|
-
sizeMD: 700,
|
|
81
|
-
sizeSM: 400,
|
|
82
|
-
sizeSM: 400,
|
|
83
|
-
buttons: [
|
|
84
|
-
'source', '|',
|
|
85
|
-
'bold',
|
|
86
|
-
'strikethrough',
|
|
87
|
-
'underline',
|
|
88
|
-
'italic', '|',
|
|
89
|
-
'ul',
|
|
90
|
-
'ol', '|',
|
|
91
|
-
'outdent', 'indent', '|',
|
|
92
|
-
'font',
|
|
93
|
-
'fontsize',
|
|
94
|
-
'brush',
|
|
95
|
-
'paragraph', '|',
|
|
96
|
-
'image',
|
|
97
|
-
'video',
|
|
98
|
-
'table',
|
|
99
|
-
'link', '|',
|
|
100
|
-
'align', 'undo', 'redo', '|',
|
|
101
|
-
'hr',
|
|
102
|
-
'eraser',
|
|
103
|
-
'copyformat', '|',
|
|
104
|
-
'symbol',
|
|
105
|
-
'fullsize',
|
|
106
|
-
'print',
|
|
107
|
-
'about'
|
|
108
|
-
],
|
|
109
|
-
buttonsXS: [
|
|
110
|
-
'bold',
|
|
111
|
-
'image', '|',
|
|
112
|
-
'brush',
|
|
113
|
-
'paragraph', '|',
|
|
114
|
-
'align', '|',
|
|
115
|
-
'undo', 'redo', '|',
|
|
116
|
-
'eraser',
|
|
117
|
-
'dots'
|
|
118
|
-
],
|
|
119
|
-
events: {},
|
|
120
|
-
textIcons: false,
|
|
121
|
-
});
|
|
122
|
-
editor.setEditorValue('<p>start</p>')
|
|
123
|
-
</code></pre>
|
|
124
|
-
</div>
|
|
125
|
-
<div class="result">
|
|
126
|
-
<textarea id="area_editor"></textarea>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<footer>
|
|
130
|
-
<nav>
|
|
131
|
-
<ul class="container">
|
|
132
|
-
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
133
|
-
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
134
|
-
<li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
|
|
135
|
-
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
136
|
-
<li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
|
|
137
|
-
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
138
|
-
</ul>
|
|
139
|
-
</nav>
|
|
140
|
-
</footer>
|
|
141
|
-
</body>
|
|
142
|
-
<link rel="stylesheet" href="../build/jodit.min.css"/>
|
|
143
|
-
<link rel="stylesheet" href="assets/app.css"/>
|
|
144
|
-
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
|
|
145
|
-
|
|
146
|
-
<script src="../build/jodit.min.js"></script>
|
|
147
|
-
<script src="assets/prism.js"></script>
|
|
148
|
-
<script src="assets/app.js"></script>
|
|
149
|
-
<script>
|
|
150
|
-
var editor = new Jodit('#area_editor', {
|
|
151
|
-
textIcons: false,
|
|
152
|
-
toolbarButtonSize: 'small',
|
|
153
|
-
iframe: false,
|
|
154
|
-
iframeStyle: '*,.jodit-wysiwyg {color:red;}',
|
|
155
|
-
height: 300,
|
|
156
|
-
defaultMode: Jodit.MODE_WYSIWYG,
|
|
157
|
-
observer: {
|
|
158
|
-
timeout: 100
|
|
159
|
-
},
|
|
160
|
-
uploader: {
|
|
161
|
-
url: 'https://xdsoft.net/jodit/connector/index.php?action=fileUpload'
|
|
162
|
-
},
|
|
163
|
-
filebrowser: {
|
|
164
|
-
// buttons: ['list', 'tiles', 'sort'],
|
|
165
|
-
ajax: {
|
|
166
|
-
url: 'https://xdsoft.net/jodit/connector/index.php'
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
commandToHotkeys: {
|
|
170
|
-
'openreplacedialog': 'ctrl+p'
|
|
171
|
-
}
|
|
172
|
-
// buttons: ['symbol'],
|
|
173
|
-
// disablePlugins: 'hotkeys,mobile'
|
|
174
|
-
});
|
|
175
|
-
</script>
|
|
176
|
-
</html>
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<!--
|
|
3
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4
|
-
* License GNU General Public License version 2 or later;
|
|
5
|
-
* Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
|
|
6
|
-
-->
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8"/>
|
|
10
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
|
|
11
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
|
12
|
-
<title>Inline edit Jodit Example</title>
|
|
13
|
-
<link rel="icon" type="image/png" href="assets/icon.png" />
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<header>
|
|
17
|
-
<nav>
|
|
18
|
-
<ul class="container">
|
|
19
|
-
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
20
|
-
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
21
|
-
<li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
|
|
22
|
-
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
23
|
-
<li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
|
|
24
|
-
<li>
|
|
25
|
-
<a href="javascript:void(0)">Examples</a>
|
|
26
|
-
<ul id="examples"><!-- see app.js--></ul>
|
|
27
|
-
</li>
|
|
28
|
-
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
29
|
-
</ul>
|
|
30
|
-
</nav>
|
|
31
|
-
</header>
|
|
32
|
-
<div id="main_container" class="container">
|
|
33
|
-
<div id="introduction">
|
|
34
|
-
<h3>HTML</h3>
|
|
35
|
-
<pre><code class="language-markup">
|
|
36
|
-
<div id="area">Some text</div>
|
|
37
|
-
</code></pre>
|
|
38
|
-
<h3>JavaScript</h3>
|
|
39
|
-
<pre><code class="language-javascript">
|
|
40
|
-
var editor = new Jodit('#area', {
|
|
41
|
-
preset: 'inline'
|
|
42
|
-
})
|
|
43
|
-
</code></pre>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="result">
|
|
46
|
-
<div id="area">
|
|
47
|
-
<p><img style="float:right; margin: 10px;" src="./assets/download.jpg" alt="Itaque nostrum est-quod nostrum dico, artis est-ad ea principia, quae accepimus."></p>
|
|
48
|
-
<h1>Itaque nostrum est-quod nostrum dico, artis est-ad ea principia, quae accepimus.</h1>
|
|
49
|
-
|
|
50
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <i>Quonam, inquit, modo?</i> <mark>Illum mallem levares, quo optimum atque humanissimum virum, Cn.</mark> Quae quidem vel cum periculo est quaerenda vobis; Amicitiam autem adhibendam esse censent, quia sit ex eo genere, quae prosunt. <a href="http://loripsum.net/" target="_blank">Duo Reges: constructio interrete.</a> Illud quaero, quid ei, qui in voluptate summum bonum ponat, consentaneum sit dicere. At vero illa, quae Peripatetici, quae Stoici dicunt, semper tibi in ore sunt in iudiciis, in senatu. Dic in quovis conventu te omnia facere, ne doleas. Nummus in Croesi divitiis obscuratur, pars est tamen divitiarum. Isto modo ne improbos quidem, si essent boni viri. Luxuriam non reprehendit, modo sit vacua infinita cupiditate et timore. Sit ista in Graecorum levitate perversitas, qui maledictis insectantur eos, a quibus de veritate dissentiunt. </p>
|
|
51
|
-
|
|
52
|
-
<blockquote cite="http://loripsum.net">
|
|
53
|
-
Nec enim absolvi beata vita sapientis neque ad exitum perduci poterit, si prima quaeque bene ab eo consulta atque facta ipsius oblivione obruentur.
|
|
54
|
-
</blockquote>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<pre>Tum ille: Tu autem cum ipse tantum librorum habeas, quos hic
|
|
58
|
-
tandem requiris?
|
|
59
|
-
|
|
60
|
-
Possumusne ergo in vita summum bonum dicere, cum id ne in
|
|
61
|
-
cena quidem posse videamur?
|
|
62
|
-
</pre>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<ul>
|
|
66
|
-
<li>Possumusne ergo in vita summum bonum dicere, cum id ne in cena quidem posse videamur?</li>
|
|
67
|
-
<li>Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis;</li>
|
|
68
|
-
</ul>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<ol>
|
|
72
|
-
<li>Qui autem diffidet perpetuitati bonorum suorum, timeat necesse est, ne aliquando amissis illis sit miser.</li>
|
|
73
|
-
<li>Nulla profecto est, quin suam vim retineat a primo ad extremum.</li>
|
|
74
|
-
</ol>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<dl>
|
|
78
|
-
<dt><dfn>Falli igitur possumus.</dfn></dt>
|
|
79
|
-
<dd>Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est?</dd>
|
|
80
|
-
<dt><dfn>Scrupulum, inquam, abeunti;</dfn></dt>
|
|
81
|
-
<dd>Scio enim esse quosdam, qui quavis lingua philosophari possint;</dd>
|
|
82
|
-
<dt><dfn>Poterat autem inpune;</dfn></dt>
|
|
83
|
-
<dd>Tum ille: Tu autem cum ipse tantum librorum habeas, quos hic tandem requiris?</dd>
|
|
84
|
-
<dt><dfn>Beatum, inquit.</dfn></dt>
|
|
85
|
-
<dd>Respondeat totidem verbis.</dd>
|
|
86
|
-
</dl>
|
|
87
|
-
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
<footer>
|
|
92
|
-
<nav>
|
|
93
|
-
<ul class="container">
|
|
94
|
-
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
95
|
-
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
96
|
-
<li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
|
|
97
|
-
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
98
|
-
<li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
|
|
99
|
-
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
100
|
-
</ul>
|
|
101
|
-
</nav>
|
|
102
|
-
</footer>
|
|
103
|
-
</body>
|
|
104
|
-
<link rel="stylesheet" href="../build/jodit.min.css"/>
|
|
105
|
-
<link rel="stylesheet" href="assets/app.css"/>
|
|
106
|
-
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
|
|
107
|
-
|
|
108
|
-
<script src="../build/jodit.min.js"></script>
|
|
109
|
-
<script src="assets/prism.js"></script>
|
|
110
|
-
<script src="assets/app.js"></script>
|
|
111
|
-
<script>
|
|
112
|
-
var editor = new Jodit('#area', {
|
|
113
|
-
preset: 'inline'
|
|
114
|
-
});
|
|
115
|
-
</script>
|
|
116
|
-
</html>
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<!--
|
|
3
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4
|
-
* License GNU General Public License version 2 or later;
|
|
5
|
-
* Copyright 2013-2020 Valeriy Chupurnov https://xdsoft.net
|
|
6
|
-
-->
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8"/>
|
|
10
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
|
|
11
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
|
12
|
-
<title>One Instance Jodit Example</title>
|
|
13
|
-
<link rel="icon" type="image/png" href="assets/icon.png" />
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<header>
|
|
17
|
-
<nav>
|
|
18
|
-
<ul class="container">
|
|
19
|
-
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
20
|
-
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
21
|
-
<li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
|
|
22
|
-
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
23
|
-
<li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
|
|
24
|
-
<li>
|
|
25
|
-
<a href="javascript:void(0)">Examples</a>
|
|
26
|
-
<ul id="examples"><!-- see app.js--></ul>
|
|
27
|
-
</li>
|
|
28
|
-
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
29
|
-
</ul>
|
|
30
|
-
</nav>
|
|
31
|
-
</header>
|
|
32
|
-
<div id="main_container" class="container">
|
|
33
|
-
<div id="introduction">
|
|
34
|
-
<p>You can create Jodit only when you need.</p>
|
|
35
|
-
<h3>HTML</h3>
|
|
36
|
-
<pre><code class="language-markup">
|
|
37
|
-
<div class="editor" id="editor1">Some text</div>
|
|
38
|
-
<div class="editor" id="editor2">Some text</div>
|
|
39
|
-
<div class="editor" id="editor3">Some text</div>
|
|
40
|
-
<div class="editor" id="editor4">Some text</div>
|
|
41
|
-
<div class="editor" id="editor5">Some text</div>
|
|
42
|
-
<div class="editor" id="editor6">Some text</div>
|
|
43
|
-
</code></pre>
|
|
44
|
-
<h3>JavaScript</h3>
|
|
45
|
-
<pre><code class="language-javascript">
|
|
46
|
-
var editors = [].slice.call(document.querySelectorAll('.editor'));
|
|
47
|
-
editors.forEach(function (div) {
|
|
48
|
-
div.addEventListener('click', function (e) {
|
|
49
|
-
if (!Jodit.instances[div.id]) {
|
|
50
|
-
Object.keys(Jodit.instances).forEach(function (id) {
|
|
51
|
-
Jodit.instances[id].destruct();
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
var editor = new Jodit(div, {
|
|
55
|
-
preset: 'inline'
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
editor.s.insertCursorAtPoint(e.clientX, e.clientY);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
</code></pre>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="result">
|
|
65
|
-
<div class="editor" id="editor1">Some text</div>
|
|
66
|
-
<div class="editor" id="editor2">Some text</div>
|
|
67
|
-
<div class="editor" id="editor3">Some text</div>
|
|
68
|
-
<div class="editor" id="editor4">Some text</div>
|
|
69
|
-
<div class="editor" id="editor5">Some text</div>
|
|
70
|
-
<div class="editor" id="editor6">Some text</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<footer>
|
|
74
|
-
<nav>
|
|
75
|
-
<ul class="container">
|
|
76
|
-
<li><a href="https://xdsoft.net/jodit/">Jodit homepage</a></li>
|
|
77
|
-
<li><a href="https://xdsoft.net/jodit/play.html">Playground</a></li>
|
|
78
|
-
<li><a href="https://xdsoft.net/jodit/doc/">Documentation</a></li>
|
|
79
|
-
<li><a href="https://github.com/xdan/jodit/">Github</a></li>
|
|
80
|
-
<li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
|
|
81
|
-
<li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
|
|
82
|
-
</ul>
|
|
83
|
-
</nav>
|
|
84
|
-
</footer>
|
|
85
|
-
</body>
|
|
86
|
-
<link rel="stylesheet" href="../build/jodit.min.css"/>
|
|
87
|
-
<link rel="stylesheet" href="assets/app.css"/>
|
|
88
|
-
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">
|
|
89
|
-
|
|
90
|
-
<script src="../build/jodit.min.js"></script>
|
|
91
|
-
<script src="assets/prism.js"></script>
|
|
92
|
-
<script src="assets/app.js"></script>
|
|
93
|
-
<style>
|
|
94
|
-
.editor {
|
|
95
|
-
margin-bottom: 10px;
|
|
96
|
-
padding: 10px;
|
|
97
|
-
border: 1px dashed red;
|
|
98
|
-
}
|
|
99
|
-
.editor p{
|
|
100
|
-
margin: 0 0 10px 0;
|
|
101
|
-
}
|
|
102
|
-
.jodit-container, .jodit-container .jodit-workplace {
|
|
103
|
-
min-height: auto;
|
|
104
|
-
}
|
|
105
|
-
</style>
|
|
106
|
-
<script>
|
|
107
|
-
var editors = [].slice.call(document.querySelectorAll('.editor'));
|
|
108
|
-
|
|
109
|
-
editors.forEach(function (div) {
|
|
110
|
-
div.addEventListener('click', function (e) {
|
|
111
|
-
if (!Jodit.instances[div.id]) {
|
|
112
|
-
Object.keys(Jodit.instances).forEach(function (id) {
|
|
113
|
-
Jodit.instances[id].destruct();
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
var editor = new Jodit(div, {
|
|
117
|
-
preset: 'inline'
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
editor.s.insertCursorAtPoint(e.clientX, e.clientY);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
</script>
|
|
125
|
-
</html>
|
package/icons.html
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport"
|
|
6
|
-
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
-
<title>Jodit Test Document</title>
|
|
9
|
-
<link rel="stylesheet" href="./build/jodit.min.css">
|
|
10
|
-
<script src="./build/jodit.min.js"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<div id="box"></div>
|
|
14
|
-
<script>
|
|
15
|
-
const result = [];
|
|
16
|
-
for (const key in Jodit.modules.ToolbarIcon.icons) {
|
|
17
|
-
result.push(`<div class="item">
|
|
18
|
-
<div class="item-title">${key}</div>
|
|
19
|
-
<div class="item-icon">
|
|
20
|
-
${Jodit.modules.Icon.get(key)}
|
|
21
|
-
</div>
|
|
22
|
-
</div>`);
|
|
23
|
-
}
|
|
24
|
-
box.innerHTML = result.join('');
|
|
25
|
-
</script>
|
|
26
|
-
<style>
|
|
27
|
-
#box {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-wrap: wrap;
|
|
30
|
-
}
|
|
31
|
-
.item {
|
|
32
|
-
width: 30px;
|
|
33
|
-
margin: 5px;
|
|
34
|
-
border: 1px solid #ccc;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: space-between;
|
|
39
|
-
}
|
|
40
|
-
.item-title {
|
|
41
|
-
font-size: 8px;
|
|
42
|
-
word-break: break-all;
|
|
43
|
-
}
|
|
44
|
-
.item-icon {
|
|
45
|
-
width: 24px;
|
|
46
|
-
height: 24px;
|
|
47
|
-
}
|
|
48
|
-
</style>
|
|
49
|
-
</body>
|
|
50
|
-
</html>
|
package/karma.conf.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
const path = require('path');
|
|
8
|
-
const webpackConfFunc = require(path.resolve(
|
|
9
|
-
process.cwd(),
|
|
10
|
-
'./webpack.config'
|
|
11
|
-
));
|
|
12
|
-
|
|
13
|
-
const webpackConfig = (() => {
|
|
14
|
-
const config = webpackConfFunc(
|
|
15
|
-
[],
|
|
16
|
-
{
|
|
17
|
-
mode: 'production',
|
|
18
|
-
isTest: true,
|
|
19
|
-
uglify: true,
|
|
20
|
-
es: 'es5'
|
|
21
|
-
},
|
|
22
|
-
process.cwd()
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
delete config.context;
|
|
26
|
-
// delete config.entry;
|
|
27
|
-
|
|
28
|
-
delete config.output.path;
|
|
29
|
-
delete config.output.filename;
|
|
30
|
-
delete config.output.publicPath;
|
|
31
|
-
// delete config.output;
|
|
32
|
-
|
|
33
|
-
config.stats = {
|
|
34
|
-
modules: false,
|
|
35
|
-
colors: true
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
config.watch = false;
|
|
39
|
-
|
|
40
|
-
config.optimization = {
|
|
41
|
-
runtimeChunk: 'single',
|
|
42
|
-
splitChunks: {
|
|
43
|
-
chunks: 'all',
|
|
44
|
-
minSize: 0,
|
|
45
|
-
cacheGroups: {
|
|
46
|
-
commons: {
|
|
47
|
-
name: 'commons',
|
|
48
|
-
chunks: 'initial',
|
|
49
|
-
minChunks: 1
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
return config;
|
|
56
|
-
})();
|
|
57
|
-
|
|
58
|
-
module.exports = function (config) {
|
|
59
|
-
config.set({
|
|
60
|
-
basePath: '',
|
|
61
|
-
frameworks: ['mocha', 'chai', 'webpack'],
|
|
62
|
-
|
|
63
|
-
mime: {
|
|
64
|
-
'text/css': ['css'],
|
|
65
|
-
'text/x-typescript': ['ts', 'tsx'],
|
|
66
|
-
'image/jpeg': ['jpg']
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
files: [
|
|
70
|
-
{
|
|
71
|
-
pattern: './test/tests/artio.jpg',
|
|
72
|
-
watched: false,
|
|
73
|
-
included: false,
|
|
74
|
-
served: true
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
pattern: './test/test.index.html',
|
|
78
|
-
watched: false,
|
|
79
|
-
included: false,
|
|
80
|
-
served: true
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
'app.css',
|
|
84
|
-
'build/jodit.js',
|
|
85
|
-
'build/jodit.css',
|
|
86
|
-
'node_modules/synchronous-promise/dist/synchronous-promise.js',
|
|
87
|
-
'test/bootstrap.js',
|
|
88
|
-
'config.js',
|
|
89
|
-
'src/**/*.test.js',
|
|
90
|
-
'test/tests/units/*.js',
|
|
91
|
-
'test/tests/acceptance/*.js',
|
|
92
|
-
'test/tests/acceptance/plugins/*.js'
|
|
93
|
-
],
|
|
94
|
-
|
|
95
|
-
proxies: {
|
|
96
|
-
'/tests/artio.jpg': '/base/test/tests/artio.jpg',
|
|
97
|
-
'/test.index.html': '/base/test/test.index.html'
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
reporters: ['progress'],
|
|
101
|
-
port: 2002,
|
|
102
|
-
hostname: '127.0.0.1',
|
|
103
|
-
colors: true,
|
|
104
|
-
logLevel: config.LOG_INFO,
|
|
105
|
-
browsers: ['ChromeHeadless', 'FirefoxHeadless', 'Firefox'],
|
|
106
|
-
customLaunchers: {
|
|
107
|
-
FirefoxHeadless: {
|
|
108
|
-
base: 'Firefox',
|
|
109
|
-
flags: ['-width', 1440, '-height', 900, '-headless']
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
ChromeHeadless: {
|
|
113
|
-
base: 'Chrome',
|
|
114
|
-
flags: [
|
|
115
|
-
'--window-size=1440,900',
|
|
116
|
-
'--disable-gpu',
|
|
117
|
-
'--disable-extensions',
|
|
118
|
-
'--disable-translate'
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
autoWatch: true,
|
|
124
|
-
singleRun: true, // Karma captures browsers, runs the tests and exits
|
|
125
|
-
concurrency: Infinity,
|
|
126
|
-
|
|
127
|
-
preprocessors: {
|
|
128
|
-
'src/index.ts': ['webpack']
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
plugins: [
|
|
132
|
-
'karma-chrome-launcher',
|
|
133
|
-
'karma-firefox-launcher',
|
|
134
|
-
'karma-webpack',
|
|
135
|
-
'karma-mocha',
|
|
136
|
-
'karma-chai',
|
|
137
|
-
'karma-sourcemap-loader'
|
|
138
|
-
],
|
|
139
|
-
|
|
140
|
-
webpack: webpackConfig,
|
|
141
|
-
|
|
142
|
-
client: {
|
|
143
|
-
captureConsole: true,
|
|
144
|
-
mocha: {
|
|
145
|
-
bail: true
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
webpackMiddleware: {
|
|
150
|
-
quiet: true,
|
|
151
|
-
stats: {
|
|
152
|
-
chunks: false
|
|
153
|
-
},
|
|
154
|
-
noInfo: true
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
};
|
package/make.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
module.exports = {
|
|
7
|
-
paths: [
|
|
8
|
-
// require('path').resolve(__dirname, './plugins/example/'),
|
|
9
|
-
]
|
|
10
|
-
};
|