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/server.js
DELETED
|
@@ -1,101 +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 webpack = require('webpack');
|
|
8
|
-
const webpackDevMiddleware = require('webpack-dev-middleware');
|
|
9
|
-
const webpackHotMiddleware = require('webpack-hot-middleware');
|
|
10
|
-
|
|
11
|
-
const fs = require('fs');
|
|
12
|
-
const path = require('path');
|
|
13
|
-
|
|
14
|
-
const cwd = process.cwd();
|
|
15
|
-
|
|
16
|
-
const reg = /--([a-z]+)\s*=\s*(.*)/;
|
|
17
|
-
const args = {};
|
|
18
|
-
|
|
19
|
-
process.argv
|
|
20
|
-
.filter(a => reg.test(a))
|
|
21
|
-
.forEach(c => {
|
|
22
|
-
const res = reg.exec(c);
|
|
23
|
-
args[res[1]] = res[2];
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const config = require(path.resolve(cwd, './webpack.config'))(
|
|
27
|
-
[],
|
|
28
|
-
{
|
|
29
|
-
es: args['es'] || 'es5',
|
|
30
|
-
isTest: true
|
|
31
|
-
},
|
|
32
|
-
cwd
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
const compression = require('compression');
|
|
36
|
-
const app = new (require('express'))();
|
|
37
|
-
|
|
38
|
-
app.use(compression());
|
|
39
|
-
|
|
40
|
-
const port = args.port || 2000;
|
|
41
|
-
|
|
42
|
-
const compiler = webpack(config);
|
|
43
|
-
|
|
44
|
-
app.use(webpackDevMiddleware(compiler));
|
|
45
|
-
|
|
46
|
-
app.use(webpackHotMiddleware(compiler));
|
|
47
|
-
|
|
48
|
-
app.get('/', (req, res) => {
|
|
49
|
-
if (fs.existsSync(cwd + '/test.html')) {
|
|
50
|
-
res.sendFile(cwd + '/test.html');
|
|
51
|
-
} else {
|
|
52
|
-
res.sendFile(cwd + '/index.html');
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
app.get('/*.js', (req, res) => {
|
|
57
|
-
res.sendFile(cwd + '/' + req.url);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
app.get('/icons.html', (req, res) => {
|
|
61
|
-
res.sendFile(cwd + '/icons.html');
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
app.get('/test.html', (req, res) => {
|
|
65
|
-
res.sendFile(cwd + '/test.html');
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
app.get('/fake.html', (req, res) => {
|
|
69
|
-
res.sendFile(cwd + '/fake.html');
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
app.get('/build/*.*', (req, res) => {
|
|
73
|
-
const filename = cwd + '/' + req.url;
|
|
74
|
-
|
|
75
|
-
if (fs.existsSync(filename)) {
|
|
76
|
-
res.sendFile(filename);
|
|
77
|
-
} else {
|
|
78
|
-
res.status(404).send('Not Found');
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
app.use('/node_modules', require('express').static(cwd + '/node_modules'));
|
|
83
|
-
|
|
84
|
-
app.use('/test', require('express').static(cwd + '/test'));
|
|
85
|
-
app.use('/app.css', require('express').static(cwd + '/app.css'));
|
|
86
|
-
app.use(
|
|
87
|
-
'/examples/download.jpg',
|
|
88
|
-
require('express').static(cwd + '/examples/download.jpg')
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
app.listen(port, function (error) {
|
|
92
|
-
if (error) {
|
|
93
|
-
console.error(error);
|
|
94
|
-
} else {
|
|
95
|
-
console.info(
|
|
96
|
-
'==> Listening on port %s. Open up http://localhost:%s/ in your browser.',
|
|
97
|
-
port,
|
|
98
|
-
port
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
});
|