jodit 4.0.5 → 4.0.13
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 +15 -5
- package/es2015/jodit.css +19 -19
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +633 -529
- package/es2015/jodit.min.css +1 -1
- 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 +72 -46
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.css +19 -19
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +633 -529
- package/es2018/jodit.min.css +1 -1
- 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 +72 -46
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +19 -19
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +632 -528
- package/es2021/jodit.min.css +1 -1
- 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 +72 -46
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +19 -19
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +333 -313
- package/es2021.en/jodit.min.css +1 -1
- 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 +3 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +25 -19
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +646 -542
- package/es5/jodit.min.css +3 -3
- 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 +72 -46
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/esm/core/async/async.d.ts +1 -1
- package/esm/core/async/async.js +2 -2
- package/esm/core/constants.js +1 -1
- package/esm/core/create/create.d.ts +1 -1
- package/esm/core/helpers/utils/append-script.d.ts +1 -5
- package/esm/core/helpers/utils/append-script.js +13 -28
- package/esm/core/plugin/helpers/load.d.ts +1 -1
- package/esm/core/plugin/helpers/load.js +2 -2
- package/esm/core/plugin/plugin-system.js +5 -5
- package/esm/core/plugin/plugin.js +5 -1
- package/esm/core/ui/popup/popup.js +1 -0
- package/esm/core/view/view-with-toolbar.js +4 -1
- package/esm/langs/fi.d.ts +218 -0
- package/esm/langs/fi.js +231 -0
- package/esm/languages.js +2 -0
- package/esm/plugins/add-new-line/add-new-line.d.ts +14 -14
- package/esm/plugins/add-new-line/add-new-line.js +76 -73
- package/esm/plugins/copy-format/langs/fi.d.ts +4 -0
- package/esm/plugins/copy-format/langs/fi.js +9 -0
- package/esm/plugins/copy-format/langs/index.d.ts +2 -1
- package/esm/plugins/copy-format/langs/index.js +2 -1
- package/esm/plugins/line-height/langs/fi.d.ts +4 -0
- package/esm/plugins/line-height/langs/fi.js +9 -0
- package/esm/plugins/line-height/langs/index.d.ts +2 -1
- package/esm/plugins/line-height/langs/index.js +2 -1
- package/esm/plugins/resizer/resizer.d.ts +2 -2
- package/esm/plugins/resizer/resizer.js +12 -13
- package/esm/plugins/search/config.d.ts +5 -0
- package/esm/plugins/search/config.js +3 -1
- package/esm/plugins/search/helpers/{wrap-ranges-texts-in-tmp-span.d.ts → highlight-text-ranges.d.ts} +2 -2
- package/esm/plugins/search/helpers/{wrap-ranges-texts-in-tmp-span.js → highlight-text-ranges.js} +19 -1
- package/esm/plugins/search/helpers/index.d.ts +1 -1
- package/esm/plugins/search/helpers/index.js +1 -1
- package/esm/plugins/search/search.d.ts +1 -1
- package/esm/plugins/search/search.js +4 -4
- package/esm/plugins/source/source.js +1 -1
- package/esm/plugins/speech-recognize/langs/fi.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/fi.js +14 -0
- package/esm/plugins/speech-recognize/langs/index.d.ts +2 -1
- package/esm/plugins/speech-recognize/langs/index.js +2 -1
- package/esm/plugins/spellcheck/langs/fi.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/fi.js +9 -0
- package/esm/plugins/spellcheck/langs/index.d.ts +2 -1
- package/esm/plugins/spellcheck/langs/index.js +2 -1
- package/esm/plugins/symbols/langs/fi.d.ts +1 -0
- package/esm/plugins/symbols/langs/fi.js +9 -0
- package/esm/plugins/symbols/langs/index.d.ts +2 -1
- package/esm/plugins/symbols/langs/index.js +2 -1
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +1 -1
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +70 -73
- package/esm/tsconfig.json +1 -1
- package/esm/types/create.d.ts +1 -1
- package/package.json +1 -1
- package/types/core/async/async.d.ts +1 -1
- package/types/core/create/create.d.ts +1 -1
- package/types/core/helpers/utils/append-script.d.ts +1 -5
- package/types/core/plugin/helpers/load.d.ts +1 -1
- package/types/langs/fi.d.ts +218 -0
- package/types/plugins/add-new-line/add-new-line.d.ts +14 -14
- package/types/plugins/copy-format/langs/fi.d.ts +4 -0
- package/types/plugins/copy-format/langs/index.d.ts +2 -1
- package/types/plugins/line-height/langs/fi.d.ts +4 -0
- package/types/plugins/line-height/langs/index.d.ts +2 -1
- package/types/plugins/resizer/resizer.d.ts +2 -2
- package/types/plugins/search/config.d.ts +5 -0
- package/types/plugins/search/helpers/{wrap-ranges-texts-in-tmp-span.d.ts → highlight-text-ranges.d.ts} +2 -2
- package/types/plugins/search/helpers/index.d.ts +1 -1
- package/types/plugins/search/search.d.ts +1 -1
- package/types/plugins/speech-recognize/langs/fi.d.ts +9 -0
- package/types/plugins/speech-recognize/langs/index.d.ts +2 -1
- package/types/plugins/spellcheck/langs/fi.d.ts +1 -0
- package/types/plugins/spellcheck/langs/index.d.ts +2 -1
- package/types/plugins/symbols/langs/fi.d.ts +1 -0
- package/types/plugins/symbols/langs/index.d.ts +2 -1
- package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +1 -1
- package/types/tsconfig.json +1 -1
- package/types/types/create.d.ts +1 -1
|
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
|
|
|
8
8
|
import * as de from "./de.js";
|
|
9
9
|
import * as es from "./es.js";
|
|
10
10
|
import * as fa from "./fa.js";
|
|
11
|
+
import * as fi from "./fi.js";
|
|
11
12
|
import * as fr from "./fr.js";
|
|
12
13
|
import * as he from "./he.js";
|
|
13
14
|
import * as hu from "./hu.js";
|
|
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
|
|
|
23
24
|
import * as tr from "./tr.js";
|
|
24
25
|
import * as zh_cn from "./zh_cn.js";
|
|
25
26
|
import * as zh_tw from "./zh_tw.js";
|
|
26
|
-
export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
27
|
+
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
|
|
|
8
8
|
import * as de from "./de.js";
|
|
9
9
|
import * as es from "./es.js";
|
|
10
10
|
import * as fa from "./fa.js";
|
|
11
|
+
import * as fi from "./fi.js";
|
|
11
12
|
import * as fr from "./fr.js";
|
|
12
13
|
import * as he from "./he.js";
|
|
13
14
|
import * as hu from "./hu.js";
|
|
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
|
|
|
23
24
|
import * as tr from "./tr.js";
|
|
24
25
|
import * as zh_cn from "./zh_cn.js";
|
|
25
26
|
import * as zh_tw from "./zh_tw.js";
|
|
26
|
-
export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
27
|
+
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export let symbols: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
5
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
6
|
+
*/
|
|
7
|
+
export default {
|
|
8
|
+
symbols: 'Symbolit'
|
|
9
|
+
};
|
|
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
|
|
|
8
8
|
import * as de from "./de.js";
|
|
9
9
|
import * as es from "./es.js";
|
|
10
10
|
import * as fa from "./fa.js";
|
|
11
|
+
import * as fi from "./fi.js";
|
|
11
12
|
import * as fr from "./fr.js";
|
|
12
13
|
import * as he from "./he.js";
|
|
13
14
|
import * as hu from "./hu.js";
|
|
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
|
|
|
23
24
|
import * as tr from "./tr.js";
|
|
24
25
|
import * as zh_cn from "./zh_cn.js";
|
|
25
26
|
import * as zh_tw from "./zh_tw.js";
|
|
26
|
-
export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
27
|
+
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
|
|
|
8
8
|
import * as de from "./de.js";
|
|
9
9
|
import * as es from "./es.js";
|
|
10
10
|
import * as fa from "./fa.js";
|
|
11
|
+
import * as fi from "./fi.js";
|
|
11
12
|
import * as fr from "./fr.js";
|
|
12
13
|
import * as he from "./he.js";
|
|
13
14
|
import * as hu from "./hu.js";
|
|
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
|
|
|
23
24
|
import * as tr from "./tr.js";
|
|
24
25
|
import * as zh_cn from "./zh_cn.js";
|
|
25
26
|
import * as zh_tw from "./zh_tw.js";
|
|
26
|
-
export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
27
|
+
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
@@ -7,111 +7,108 @@ import * as consts from "jodit/esm/core/constants.js";
|
|
|
7
7
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
8
8
|
import { Table } from "jodit/esm/modules/table/table.js";
|
|
9
9
|
import { pluginSystem } from "jodit/esm/core/global.js";
|
|
10
|
+
import { call } from "jodit/esm/core/helpers/index.js";
|
|
11
|
+
const WORK_KEYS = new Set([
|
|
12
|
+
consts.KEY_TAB,
|
|
13
|
+
consts.KEY_LEFT,
|
|
14
|
+
consts.KEY_RIGHT,
|
|
15
|
+
consts.KEY_UP,
|
|
16
|
+
consts.KEY_DOWN
|
|
17
|
+
]);
|
|
10
18
|
/**
|
|
11
|
-
* Process
|
|
19
|
+
* Process navigates key pressing in table cell
|
|
12
20
|
*/
|
|
13
21
|
export function tableKeyboardNavigation(editor) {
|
|
14
22
|
editor.e
|
|
15
23
|
.off('.tableKeyboardNavigation')
|
|
16
24
|
.on('keydown.tableKeyboardNavigation', (event) => {
|
|
17
|
-
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
event.key === consts.KEY_RIGHT ||
|
|
21
|
-
event.key === consts.KEY_UP ||
|
|
22
|
-
event.key === consts.KEY_DOWN) {
|
|
23
|
-
current = editor.s.current();
|
|
24
|
-
block = Dom.up(current, Dom.isCell, editor.editor);
|
|
25
|
-
if (!block) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const range = editor.s.range;
|
|
29
|
-
if (event.key !== consts.KEY_TAB && current !== block) {
|
|
30
|
-
if (((event.key === consts.KEY_LEFT ||
|
|
31
|
-
event.key === consts.KEY_UP) &&
|
|
32
|
-
(Dom.prev(current, (elm) => event.key === consts.KEY_UP
|
|
33
|
-
? Dom.isTag(elm, 'br')
|
|
34
|
-
: Boolean(elm), block) ||
|
|
35
|
-
(event.key !== consts.KEY_UP &&
|
|
36
|
-
Dom.isText(current) &&
|
|
37
|
-
range.startOffset !== 0))) ||
|
|
38
|
-
((event.key === consts.KEY_RIGHT ||
|
|
39
|
-
event.key === consts.KEY_DOWN) &&
|
|
40
|
-
(Dom.next(current, (elm) => event.key === consts.KEY_DOWN
|
|
41
|
-
? Dom.isTag(elm, 'br')
|
|
42
|
-
: Boolean(elm), block) ||
|
|
43
|
-
(event.key !== consts.KEY_DOWN &&
|
|
44
|
-
Dom.isText(current) &&
|
|
45
|
-
current.nodeValue &&
|
|
46
|
-
range.startOffset !==
|
|
47
|
-
current.nodeValue.length)))) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
25
|
+
const { key } = event;
|
|
26
|
+
if (!WORK_KEYS.has(key)) {
|
|
27
|
+
return;
|
|
51
28
|
}
|
|
52
|
-
|
|
29
|
+
const current = editor.s.current();
|
|
30
|
+
if (!current) {
|
|
53
31
|
return;
|
|
54
32
|
}
|
|
55
|
-
const
|
|
56
|
-
|
|
33
|
+
const cell = Dom.up(current, Dom.isCell, editor.editor);
|
|
34
|
+
if (!cell) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const { range } = editor.s;
|
|
38
|
+
if (key !== consts.KEY_TAB && current !== cell) {
|
|
39
|
+
const isNextDirection = key === consts.KEY_RIGHT || key === consts.KEY_DOWN;
|
|
40
|
+
const hasNext = call(!isNextDirection ? Dom.prev : Dom.next, current, elm => key === consts.KEY_UP || key === consts.KEY_DOWN
|
|
41
|
+
? Dom.isTag(elm, 'br')
|
|
42
|
+
: Boolean(elm), cell);
|
|
43
|
+
if ((!isNextDirection &&
|
|
44
|
+
(hasNext ||
|
|
45
|
+
(key !== consts.KEY_UP &&
|
|
46
|
+
Dom.isText(current) &&
|
|
47
|
+
range.startOffset !== 0))) ||
|
|
48
|
+
(isNextDirection &&
|
|
49
|
+
(hasNext ||
|
|
50
|
+
(key !== consts.KEY_DOWN &&
|
|
51
|
+
Dom.isText(current) &&
|
|
52
|
+
current.nodeValue &&
|
|
53
|
+
range.startOffset !==
|
|
54
|
+
current.nodeValue.length)))) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const tableModule = editor.getInstance(Table, editor.o);
|
|
59
|
+
const table = Dom.closest(cell, 'table', editor.editor);
|
|
57
60
|
let next = null;
|
|
58
|
-
|
|
61
|
+
const isPrev = key === consts.KEY_LEFT || event.shiftKey;
|
|
62
|
+
const getNextCell = () => call(isPrev ? Dom.prev : Dom.next, cell, Dom.isCell, table);
|
|
63
|
+
switch (key) {
|
|
59
64
|
case consts.KEY_TAB:
|
|
60
|
-
// case consts.KEY_RIGHT:
|
|
61
65
|
case consts.KEY_LEFT: {
|
|
62
|
-
|
|
63
|
-
? 'prev'
|
|
64
|
-
: 'next';
|
|
65
|
-
next = Dom[sibling](block, (elm) => elm &&
|
|
66
|
-
/^td|th$/i.test(elm.tagName), table);
|
|
66
|
+
next = getNextCell();
|
|
67
67
|
if (!next) {
|
|
68
|
-
tableModule.appendRow(table,
|
|
68
|
+
tableModule.appendRow(table, !isPrev
|
|
69
69
|
? false
|
|
70
|
-
: table.querySelector('tr'),
|
|
71
|
-
next =
|
|
70
|
+
: table.querySelector('tr'), !isPrev);
|
|
71
|
+
next = getNextCell();
|
|
72
72
|
}
|
|
73
73
|
break;
|
|
74
74
|
}
|
|
75
75
|
case consts.KEY_UP:
|
|
76
76
|
case consts.KEY_DOWN:
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
if (event.key === consts.KEY_UP) {
|
|
86
|
-
if (matrix[i - 1] !== undefined) {
|
|
87
|
-
next = matrix[i - 1][j];
|
|
78
|
+
const matrix = tableModule.formalMatrix(table);
|
|
79
|
+
const [row, column] = tableModule.formalCoordinate(table, cell);
|
|
80
|
+
if (key === consts.KEY_UP) {
|
|
81
|
+
if (matrix[row - 1] !== undefined) {
|
|
82
|
+
next = matrix[row - 1][column];
|
|
88
83
|
}
|
|
89
84
|
}
|
|
90
85
|
else {
|
|
91
|
-
if (matrix[
|
|
92
|
-
next = matrix[
|
|
86
|
+
if (matrix[row + 1] !== undefined) {
|
|
87
|
+
next = matrix[row + 1][column];
|
|
93
88
|
}
|
|
94
89
|
}
|
|
95
90
|
}
|
|
96
91
|
break;
|
|
97
92
|
}
|
|
98
|
-
if (next) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
if (!next) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
editor.e.fire('hidePopup hideResizer');
|
|
97
|
+
if (!next.firstChild) {
|
|
98
|
+
const first = editor.createInside.element('br');
|
|
99
|
+
next.appendChild(first);
|
|
100
|
+
editor.s.setCursorBefore(first);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
if (key === consts.KEY_TAB) {
|
|
104
|
+
editor.s.select(next, true);
|
|
103
105
|
}
|
|
104
106
|
else {
|
|
105
|
-
|
|
106
|
-
editor.s.select(next, true);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
editor.s.setCursorIn(next, event.key === consts.KEY_RIGHT ||
|
|
110
|
-
event.key === consts.KEY_DOWN);
|
|
111
|
-
}
|
|
107
|
+
editor.s.setCursorIn(next, key === consts.KEY_RIGHT || key === consts.KEY_DOWN);
|
|
112
108
|
}
|
|
113
|
-
return false;
|
|
114
109
|
}
|
|
110
|
+
editor.synchronizeValues();
|
|
111
|
+
return false;
|
|
115
112
|
});
|
|
116
113
|
}
|
|
117
114
|
pluginSystem.add('tableKeyboardNavigation', tableKeyboardNavigation);
|
package/esm/tsconfig.json
CHANGED
package/esm/types/create.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ interface ICreate {
|
|
|
41
41
|
/**
|
|
42
42
|
* Create DOM element from HTML text
|
|
43
43
|
*/
|
|
44
|
-
fromHTML(html: string, refs?: IDictionary<boolean>):
|
|
44
|
+
fromHTML<T extends HTMLElement>(html: string, refs?: IDictionary<boolean>): T;
|
|
45
45
|
/**
|
|
46
46
|
* Apply to element `createAttributes` options
|
|
47
47
|
*/
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ export declare class Async implements IAsync {
|
|
|
56
56
|
private requestsIdle;
|
|
57
57
|
private requestsRaf;
|
|
58
58
|
private requestIdleCallbackNative;
|
|
59
|
-
private
|
|
59
|
+
private __cancelIdleCallbackNative;
|
|
60
60
|
requestIdleCallback(callback: IdleRequestCallback, options?: {
|
|
61
61
|
timeout: number;
|
|
62
62
|
}): number;
|
|
@@ -53,7 +53,7 @@ export declare class Create implements ICreate {
|
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
fromHTML(html: string | number, refsToggleElement?: IDictionary<boolean | void>):
|
|
56
|
+
fromHTML<T extends HTMLElement>(html: string | number, refsToggleElement?: IDictionary<boolean | void>): T;
|
|
57
57
|
/**
|
|
58
58
|
* Apply to element `createAttributes` options
|
|
59
59
|
*/
|
|
@@ -12,10 +12,6 @@ export interface CallbackAndElement {
|
|
|
12
12
|
callback: EventListener;
|
|
13
13
|
element: HTMLElement;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Append script in document and call callback function after download
|
|
17
|
-
*/
|
|
18
|
-
export declare const appendScript: (jodit: IViewBased, url: string, callback: (this: HTMLElement, e?: Event) => any) => CallbackAndElement;
|
|
19
15
|
/**
|
|
20
16
|
* Load script and return promise
|
|
21
17
|
*/
|
|
@@ -24,5 +20,5 @@ export declare const appendScriptAsync: Loader;
|
|
|
24
20
|
* Download CSS style script
|
|
25
21
|
*/
|
|
26
22
|
export declare const appendStyleAsync: Loader;
|
|
27
|
-
export declare
|
|
23
|
+
export declare function loadNext(jodit: IViewBased, urls: string[], i?: number): Promise<void>;
|
|
28
24
|
export declare function loadNextStyle(jodit: IViewBased, urls: string[], i?: number): Promise<void>;
|
|
@@ -14,4 +14,4 @@ export declare function loadStyle(jodit: IJodit, pluginName: string): Promise<vo
|
|
|
14
14
|
/**
|
|
15
15
|
* @private
|
|
16
16
|
*/
|
|
17
|
-
export declare function loadExtras(items: Map<string, PluginType>, jodit: IJodit,
|
|
17
|
+
export declare function loadExtras(items: Map<string, PluginType>, jodit: IJodit, extraList: IExtraPlugin[], callback: () => void): void;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
'Type something': string;
|
|
3
|
+
Advanced: string;
|
|
4
|
+
'About Jodit': string;
|
|
5
|
+
'Jodit Editor': string;
|
|
6
|
+
"Jodit User's Guide": string;
|
|
7
|
+
'contains detailed help for using': string;
|
|
8
|
+
'For information about the license, please go to our website:': string;
|
|
9
|
+
'Buy full version': string;
|
|
10
|
+
'Copyright \u00A9 XDSoft.net - Chupurnov Valeriy. All rights reserved.': string;
|
|
11
|
+
Anchor: string;
|
|
12
|
+
'Open in new tab': string;
|
|
13
|
+
'Open in fullsize': string;
|
|
14
|
+
'Clear Formatting': string;
|
|
15
|
+
'Fill color or set the text color': string;
|
|
16
|
+
Redo: string;
|
|
17
|
+
Undo: string;
|
|
18
|
+
Bold: string;
|
|
19
|
+
Italic: string;
|
|
20
|
+
'Insert Unordered List': string;
|
|
21
|
+
'Insert Ordered List': string;
|
|
22
|
+
'Align Center': string;
|
|
23
|
+
'Align Justify': string;
|
|
24
|
+
'Align Left': string;
|
|
25
|
+
'Align Right': string;
|
|
26
|
+
'Insert Horizontal Line': string;
|
|
27
|
+
'Insert Image': string;
|
|
28
|
+
'Insert file': string;
|
|
29
|
+
'Insert youtube/vimeo video': string;
|
|
30
|
+
'Insert link': string;
|
|
31
|
+
'Font size': string;
|
|
32
|
+
'Font family': string;
|
|
33
|
+
'Insert format block': string;
|
|
34
|
+
Normal: string;
|
|
35
|
+
'Heading 1': string;
|
|
36
|
+
'Heading 2': string;
|
|
37
|
+
'Heading 3': string;
|
|
38
|
+
'Heading 4': string;
|
|
39
|
+
Quote: string;
|
|
40
|
+
Code: string;
|
|
41
|
+
Insert: string;
|
|
42
|
+
'Insert table': string;
|
|
43
|
+
'Decrease Indent': string;
|
|
44
|
+
'Increase Indent': string;
|
|
45
|
+
'Select Special Character': string;
|
|
46
|
+
'Insert Special Character': string;
|
|
47
|
+
'Paint format': string;
|
|
48
|
+
'Change mode': string;
|
|
49
|
+
Margins: string;
|
|
50
|
+
top: string;
|
|
51
|
+
right: string;
|
|
52
|
+
bottom: string;
|
|
53
|
+
left: string;
|
|
54
|
+
Styles: string;
|
|
55
|
+
Classes: string;
|
|
56
|
+
Align: string;
|
|
57
|
+
Right: string;
|
|
58
|
+
Center: string;
|
|
59
|
+
Left: string;
|
|
60
|
+
'--Not Set--': string;
|
|
61
|
+
Src: string;
|
|
62
|
+
Title: string;
|
|
63
|
+
Alternative: string;
|
|
64
|
+
Filter: string;
|
|
65
|
+
Link: string;
|
|
66
|
+
'Open link in new tab': string;
|
|
67
|
+
Image: string;
|
|
68
|
+
file: string;
|
|
69
|
+
'Image properties': string;
|
|
70
|
+
Cancel: string;
|
|
71
|
+
Ok: string;
|
|
72
|
+
'Your code is similar to HTML. Keep as HTML?': string;
|
|
73
|
+
'Paste as HTML': string;
|
|
74
|
+
Keep: string;
|
|
75
|
+
Clean: string;
|
|
76
|
+
'Insert as Text': string;
|
|
77
|
+
'Word Paste Detected': string;
|
|
78
|
+
'The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?': string;
|
|
79
|
+
'Insert only Text': string;
|
|
80
|
+
'File Browser': string;
|
|
81
|
+
'Error on load list': string;
|
|
82
|
+
'Error on load folders': string;
|
|
83
|
+
'Are you sure?': string;
|
|
84
|
+
'Enter Directory name': string;
|
|
85
|
+
'Create directory': string;
|
|
86
|
+
'type name': string;
|
|
87
|
+
'Drop image': string;
|
|
88
|
+
'Drop file': string;
|
|
89
|
+
'or click': string;
|
|
90
|
+
'Alternative text': string;
|
|
91
|
+
Browse: string;
|
|
92
|
+
Upload: string;
|
|
93
|
+
Background: string;
|
|
94
|
+
Text: string;
|
|
95
|
+
Top: string;
|
|
96
|
+
Middle: string;
|
|
97
|
+
Bottom: string;
|
|
98
|
+
'Insert column before': string;
|
|
99
|
+
'Insert column after': string;
|
|
100
|
+
'Insert row above': string;
|
|
101
|
+
'Insert row below': string;
|
|
102
|
+
'Delete table': string;
|
|
103
|
+
'Delete row': string;
|
|
104
|
+
'Delete column': string;
|
|
105
|
+
'Empty cell': string;
|
|
106
|
+
Delete: string;
|
|
107
|
+
'Strike through': string;
|
|
108
|
+
Underline: string;
|
|
109
|
+
Break: string;
|
|
110
|
+
'Search for': string;
|
|
111
|
+
'Replace with': string;
|
|
112
|
+
Replace: string;
|
|
113
|
+
Edit: string;
|
|
114
|
+
'Vertical align': string;
|
|
115
|
+
'Horizontal align': string;
|
|
116
|
+
'Sort by changed': string;
|
|
117
|
+
'Sort by name': string;
|
|
118
|
+
'Sort by size': string;
|
|
119
|
+
'Add folder': string;
|
|
120
|
+
Split: string;
|
|
121
|
+
'Split vertical': string;
|
|
122
|
+
'Split horizontal': string;
|
|
123
|
+
Merge: string;
|
|
124
|
+
'Add column': string;
|
|
125
|
+
'Add row': string;
|
|
126
|
+
Border: string;
|
|
127
|
+
'Embed code': string;
|
|
128
|
+
Update: string;
|
|
129
|
+
superscript: string;
|
|
130
|
+
subscript: string;
|
|
131
|
+
'Cut selection': string;
|
|
132
|
+
Paste: string;
|
|
133
|
+
'Choose Content to Paste': string;
|
|
134
|
+
'Chars: %d': string;
|
|
135
|
+
'Words: %d': string;
|
|
136
|
+
All: string;
|
|
137
|
+
'Select %s': string;
|
|
138
|
+
'Select all': string;
|
|
139
|
+
source: string;
|
|
140
|
+
bold: string;
|
|
141
|
+
italic: string;
|
|
142
|
+
brush: string;
|
|
143
|
+
link: string;
|
|
144
|
+
undo: string;
|
|
145
|
+
redo: string;
|
|
146
|
+
table: string;
|
|
147
|
+
image: string;
|
|
148
|
+
eraser: string;
|
|
149
|
+
paragraph: string;
|
|
150
|
+
fontsize: string;
|
|
151
|
+
video: string;
|
|
152
|
+
font: string;
|
|
153
|
+
about: string;
|
|
154
|
+
print: string;
|
|
155
|
+
underline: string;
|
|
156
|
+
strikethrough: string;
|
|
157
|
+
indent: string;
|
|
158
|
+
outdent: string;
|
|
159
|
+
fullsize: string;
|
|
160
|
+
shrink: string;
|
|
161
|
+
hr: string;
|
|
162
|
+
ul: string;
|
|
163
|
+
ol: string;
|
|
164
|
+
cut: string;
|
|
165
|
+
selectall: string;
|
|
166
|
+
'Open link': string;
|
|
167
|
+
'Edit link': string;
|
|
168
|
+
'No follow': string;
|
|
169
|
+
Unlink: string;
|
|
170
|
+
Eye: string;
|
|
171
|
+
pencil: string;
|
|
172
|
+
' URL': string;
|
|
173
|
+
Reset: string;
|
|
174
|
+
Save: string;
|
|
175
|
+
'Save as ...': string;
|
|
176
|
+
Resize: string;
|
|
177
|
+
Crop: string;
|
|
178
|
+
Width: string;
|
|
179
|
+
Height: string;
|
|
180
|
+
'Keep Aspect Ratio': string;
|
|
181
|
+
Yes: string;
|
|
182
|
+
No: string;
|
|
183
|
+
Remove: string;
|
|
184
|
+
Select: string;
|
|
185
|
+
'You can only edit your own images. Download this image on the host?': string;
|
|
186
|
+
'The image has been successfully uploaded to the host!': string;
|
|
187
|
+
palette: string;
|
|
188
|
+
'There are no files': string;
|
|
189
|
+
Rename: string;
|
|
190
|
+
'Enter new name': string;
|
|
191
|
+
preview: string;
|
|
192
|
+
download: string;
|
|
193
|
+
'Paste from clipboard': string;
|
|
194
|
+
"Your browser doesn't support direct access to the clipboard.": string;
|
|
195
|
+
'Copy selection': string;
|
|
196
|
+
copy: string;
|
|
197
|
+
'Border radius': string;
|
|
198
|
+
'Show all': string;
|
|
199
|
+
Apply: string;
|
|
200
|
+
'Please fill out this field': string;
|
|
201
|
+
'Please enter a web address': string;
|
|
202
|
+
Default: string;
|
|
203
|
+
Circle: string;
|
|
204
|
+
Dot: string;
|
|
205
|
+
Quadrate: string;
|
|
206
|
+
'Lower Alpha': string;
|
|
207
|
+
'Lower Greek': string;
|
|
208
|
+
'Lower Roman': string;
|
|
209
|
+
'Upper Alpha': string;
|
|
210
|
+
'Upper Roman': string;
|
|
211
|
+
Find: string;
|
|
212
|
+
'Find Previous': string;
|
|
213
|
+
'Find Next': string;
|
|
214
|
+
'Insert className': string;
|
|
215
|
+
'Press Alt for custom resizing': string;
|
|
216
|
+
'Class name': string;
|
|
217
|
+
};
|
|
218
|
+
export = _exports;
|
|
@@ -16,23 +16,23 @@ import "./config";
|
|
|
16
16
|
* Create helper for adding new paragraph(Jodit.defaultOptions.enter tag) before iframe, table or image
|
|
17
17
|
*/
|
|
18
18
|
export declare class addNewLine extends Plugin {
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
19
|
+
private __line;
|
|
20
|
+
private __isMatchedTag;
|
|
21
|
+
private __timeout;
|
|
22
|
+
private __isBeforeContent;
|
|
23
|
+
private __current;
|
|
24
|
+
private __lineInFocus;
|
|
25
|
+
private __isShown;
|
|
26
|
+
private __show;
|
|
27
|
+
private __hideForce;
|
|
28
28
|
protected onLock(isLocked: true): void;
|
|
29
|
-
private
|
|
30
|
-
private
|
|
29
|
+
private __hide;
|
|
30
|
+
private __canGetFocus;
|
|
31
31
|
protected afterInit(editor: IJodit): void;
|
|
32
|
-
private
|
|
33
|
-
private
|
|
32
|
+
private __addEventListeners;
|
|
33
|
+
private __onClickLine;
|
|
34
34
|
protected onDblClickEditor(e: MouseEvent): void;
|
|
35
|
-
private
|
|
35
|
+
private __onMouseMove;
|
|
36
36
|
/** @override */
|
|
37
37
|
protected beforeDestruct(): void;
|
|
38
38
|
}
|
|
@@ -8,6 +8,7 @@ import cs_cz from "./cs_cz.js";
|
|
|
8
8
|
import de from "./de.js";
|
|
9
9
|
import es from "./es.js";
|
|
10
10
|
import fa from "./fa.js";
|
|
11
|
+
import fi from "./fi.js";
|
|
11
12
|
import fr from "./fr.js";
|
|
12
13
|
import he from "./he.js";
|
|
13
14
|
import hu from "./hu.js";
|
|
@@ -23,4 +24,4 @@ import ru from "./ru.js";
|
|
|
23
24
|
import tr from "./tr.js";
|
|
24
25
|
import zh_cn from "./zh_cn.js";
|
|
25
26
|
import zh_tw from "./zh_tw.js";
|
|
26
|
-
export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
27
|
+
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
@@ -8,6 +8,7 @@ import * as cs_cz from "./cs_cz.js";
|
|
|
8
8
|
import * as de from "./de.js";
|
|
9
9
|
import * as es from "./es.js";
|
|
10
10
|
import * as fa from "./fa.js";
|
|
11
|
+
import * as fi from "./fi.js";
|
|
11
12
|
import * as fr from "./fr.js";
|
|
12
13
|
import * as he from "./he.js";
|
|
13
14
|
import * as hu from "./hu.js";
|
|
@@ -23,4 +24,4 @@ import * as ru from "./ru.js";
|
|
|
23
24
|
import * as tr from "./tr.js";
|
|
24
25
|
import * as zh_cn from "./zh_cn.js";
|
|
25
26
|
import * as zh_tw from "./zh_tw.js";
|
|
26
|
-
export { ar, cs_cz, de, es, fa, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
27
|
+
export { ar, cs_cz, de, es, fa, fi, fr, he, hu, id, it, ja, ko, mn, nl, pl, pt_br, ru, tr, zh_cn, zh_tw };
|
|
@@ -47,12 +47,12 @@ export declare class resizer extends Plugin {
|
|
|
47
47
|
private getWorkplacePosition;
|
|
48
48
|
private applySize;
|
|
49
49
|
private onDelete;
|
|
50
|
-
private
|
|
50
|
+
private __onChangeEditor;
|
|
51
51
|
/**
|
|
52
52
|
* Bind an edit element to element
|
|
53
53
|
* @param element - The element that you want to add a function to resize
|
|
54
54
|
*/
|
|
55
|
-
private
|
|
55
|
+
private __bind;
|
|
56
56
|
private onClickElement;
|
|
57
57
|
private updateSize;
|
|
58
58
|
private showSizeViewer;
|
|
@@ -17,6 +17,11 @@ declare module 'jodit/config' {
|
|
|
17
17
|
useSearch: boolean;
|
|
18
18
|
search: {
|
|
19
19
|
lazyIdleTimeout: number;
|
|
20
|
+
/**
|
|
21
|
+
* Use custom highlight API https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API
|
|
22
|
+
* or use default implementation (wrap text in span and attribute jd-tmp-selection)
|
|
23
|
+
*/
|
|
24
|
+
useCustomHighlightAPI: boolean;
|
|
20
25
|
/**
|
|
21
26
|
* Function to search for a string within a substring. The default implementation is [[fuzzySearchIndex]]
|
|
22
27
|
* But you can write your own. It must implement the [[FuzzySearch]] interface.
|