jodit 3.23.3 → 3.24.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/README.md +4 -4
- package/build/jodit.css +8 -3
- package/build/jodit.es2018.css +7 -2
- package/build/jodit.es2018.en.css +7 -2
- package/build/jodit.es2018.en.js +8384 -7869
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +8384 -7869
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +2954 -2414
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/build/plugins/debug/debug.es2018.en.js +8 -8
- package/build/plugins/debug/debug.es2018.en.min.js +1 -1
- package/build/plugins/debug/debug.es2018.js +8 -8
- package/build/plugins/debug/debug.es2018.min.js +1 -1
- package/build/plugins/debug/debug.js +8 -8
- package/build/plugins/debug/debug.min.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.js +38 -38
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.min.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.js +38 -38
- package/build/plugins/speech-recognize/speech-recognize.es2018.min.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.js +30 -30
- package/build/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/build/vdom.css +12 -1
- package/build/vdom.js +1445 -41
- package/package.json +23 -23
- package/src/core/constants.ts +10 -8
- package/src/core/dom/dom.test.js +25 -0
- package/src/core/dom/dom.ts +90 -41
- package/src/core/helpers/checker/has-browser-color-picker.ts +2 -2
- package/src/core/helpers/checker/index.ts +1 -0
- package/src/core/helpers/checker/is-boolean.ts +1 -1
- package/src/core/helpers/checker/is-marker.ts +20 -0
- package/src/core/helpers/normalize/normalize-css-value.ts +19 -0
- package/src/core/helpers/normalize/normalize-node.ts +2 -2
- package/src/core/helpers/size/position.test.js +198 -187
- package/src/core/helpers/utils/css.ts +7 -14
- package/src/core/plugin/plugin.ts +1 -1
- package/src/core/selection/interface.ts +24 -0
- package/src/core/selection/select.ts +69 -29
- package/src/core/selection/selection.test.js +5 -17
- package/src/core/selection/style/api/extract.ts +6 -7
- package/src/core/selection/style/api/finite-state-machine.ts +40 -35
- package/src/core/selection/style/api/get-suit-child.ts +3 -4
- package/src/core/selection/style/api/get-suit-parent.ts +3 -4
- package/src/core/selection/style/api/{element-has-same-style.ts → has-same-style.ts} +25 -6
- package/src/core/selection/style/api/index.ts +6 -6
- package/src/core/selection/style/api/is-inside-invisible-element.ts +1 -1
- package/src/core/selection/style/api/is-normal-node.ts +3 -3
- package/src/core/selection/style/api/is-same-attributes.ts +56 -0
- package/src/core/selection/style/api/is-suit-element.ts +22 -12
- package/src/core/selection/style/api/list/toggle-ordered-list.ts +100 -0
- package/src/core/selection/style/api/list/wrap-list.ts +71 -0
- package/src/core/selection/style/api/toggle-attributes.ts +251 -0
- package/src/core/selection/style/api/unwrap-children.ts +10 -8
- package/src/core/selection/style/api/wrap-unwrapped-text.ts +7 -8
- package/src/core/selection/style/api/{wrap-and-commit-style.ts → wrap.ts} +8 -11
- package/src/core/selection/style/apply-style.ts +32 -181
- package/src/core/selection/style/commit-style.ts +79 -4
- package/src/core/selection/style/style.test.js +457 -128
- package/src/core/selection/style/transactions.ts +256 -0
- package/src/core/ui/button/tooltip/tooltip.test.js +95 -76
- package/src/core/ui/popup/popup.test.js +158 -153
- package/src/{plugins/backspace/interface.d.ts → core/vdom/on-demand.ts} +7 -5
- package/src/core/vdom/render/index.ts +2 -4
- package/src/core/vdom/render/patcher.ts +14 -0
- package/src/core/vdom/v-dom-jodit.less +17 -0
- package/src/core/vdom/v-dom-jodit.ts +102 -3
- package/src/core/view/view.ts +2 -2
- package/src/index.ts +2 -0
- package/src/jodit.ts +5 -1
- package/src/langs/i18n.test.js +221 -216
- package/src/modules/dialog/dialog.less +9 -1
- package/src/modules/dialog/dialog.ts +25 -16
- package/src/modules/file-browser/data-provider.ts +44 -12
- package/src/modules/file-browser/file-browser.test.js +1019 -958
- package/src/modules/file-browser/file-browser.ts +0 -1
- package/src/modules/messages/messages.ts +3 -8
- package/src/plugins/backspace/backspace.test.js +2 -9
- package/src/plugins/backspace/backspace.ts +5 -0
- package/src/plugins/backspace/cases/check-join-neighbors.ts +7 -1
- package/src/plugins/backspace/cases/check-join-two-lists.ts +2 -1
- package/src/plugins/backspace/helpers.ts +9 -1
- package/src/plugins/backspace/interface.ts +31 -0
- package/src/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.ts +2 -1
- package/src/plugins/color/color.test.js +122 -119
- package/src/plugins/enter/enter.test.js +18 -5
- package/src/plugins/enter/enter.ts +9 -5
- package/src/plugins/enter/interface.ts +41 -0
- package/src/plugins/font/config.ts +8 -8
- package/src/plugins/font/font.test.js +18 -23
- package/src/plugins/hotkeys/hotkeys.test.js +35 -47
- package/src/plugins/iframe/iframe.test.js +206 -195
- package/src/plugins/image/image.ts +1 -1
- package/src/plugins/image-properties/config.ts +22 -0
- package/src/plugins/image-properties/image-properties.test.js +174 -93
- package/src/plugins/image-properties/templates/position-tab.ts +22 -1
- package/src/plugins/indent/indent.test.js +2 -8
- package/src/plugins/link/link.test.js +19 -0
- package/src/plugins/link/link.ts +25 -15
- package/src/plugins/placeholder/placeholder.ts +8 -7
- package/src/plugins/size/size.test.js +239 -225
- package/src/plugins/tab/cases/on-tab-inside-li.ts +131 -22
- package/src/plugins/tab/tab.test.js +95 -11
- package/src/plugins/tab/tab.ts +22 -2
- package/src/plugins/wrap-nodes/config.ts +11 -0
- package/src/plugins/wrap-nodes/wrap-nodes.ts +0 -1
- package/src/types/events.d.ts +4 -0
- package/src/types/file-browser.d.ts +17 -10
- package/src/types/select.d.ts +6 -1
- package/src/types/style.d.ts +72 -5
- package/src/types/uploader.d.ts +14 -0
- package/src/types/view.d.ts +2 -2
- package/types/core/async/async.d.ts +1 -1
- package/types/core/constants.d.ts +3 -3
- package/types/core/dom/dom.d.ts +6 -3
- package/types/core/helpers/checker/index.d.ts +1 -0
- package/types/core/helpers/checker/is-boolean.d.ts +1 -1
- package/types/core/helpers/checker/is-marker.d.ts +10 -0
- package/types/core/helpers/html/safe-html.d.ts +1 -1
- package/types/core/helpers/normalize/normalize-css-value.d.ts +2 -0
- package/types/core/helpers/normalize/normalize-node.d.ts +1 -1
- package/types/core/helpers/utils/append-script.d.ts +1 -1
- package/types/core/selection/interface.d.ts +19 -0
- package/types/core/selection/select.d.ts +22 -5
- package/types/core/selection/style/api/finite-state-machine.d.ts +10 -9
- package/types/core/selection/style/api/get-suit-child.d.ts +2 -3
- package/types/core/selection/style/api/get-suit-parent.d.ts +2 -3
- package/types/core/selection/style/api/{element-has-same-style.d.ts → has-same-style.d.ts} +2 -2
- package/types/core/selection/style/api/index.d.ts +6 -6
- package/types/core/selection/style/api/is-same-attributes.d.ts +12 -0
- package/types/core/selection/style/api/is-suit-element.d.ts +4 -4
- package/types/core/selection/style/api/{toggle → list}/toggle-ordered-list.d.ts +2 -3
- package/types/core/selection/style/api/{wrap-ordered-list.d.ts → list/wrap-list.d.ts} +2 -3
- package/types/core/selection/style/api/toggle-attributes.d.ts +11 -0
- package/types/core/selection/style/api/unwrap-children.d.ts +2 -2
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +2 -3
- package/types/core/selection/style/api/{wrap-and-commit-style.d.ts → wrap.d.ts} +2 -3
- package/types/core/selection/style/apply-style.d.ts +3 -3
- package/types/core/selection/style/commit-style.d.ts +6 -2
- package/types/core/selection/style/transactions.d.ts +29 -0
- package/types/core/ui/popup/popup.d.ts +1 -1
- package/types/core/view/view.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/modules/file-browser/builders/elements-map.d.ts +1 -1
- package/types/modules/file-browser/data-provider.d.ts +5 -0
- package/types/modules/messages/messages.d.ts +2 -1
- package/types/plugins/backspace/helpers.d.ts +5 -1
- package/types/plugins/backspace/interface.d.ts +21 -0
- package/types/plugins/enter/enter.d.ts +2 -0
- package/types/plugins/enter/interface.d.ts +32 -0
- package/types/plugins/image-properties/config.d.ts +19 -0
- package/types/plugins/link/link.d.ts +1 -1
- package/types/plugins/paste/interface.d.ts +2 -2
- package/types/plugins/tab/cases/on-tab-inside-li.d.ts +1 -1
- package/types/plugins/wrap-nodes/config.d.ts +10 -0
- package/types/types/events.d.ts +4 -0
- package/types/types/file-browser.d.ts +17 -10
- package/types/types/select.d.ts +6 -1
- package/types/types/storage.d.ts +1 -1
- package/types/types/style.d.ts +72 -5
- package/types/types/uploader.d.ts +14 -0
- package/types/types/view.d.ts +2 -2
- package/vdom.html +20 -0
- package/src/core/selection/style/api/toggle/toggle-css.ts +0 -136
- package/src/core/selection/style/api/toggle/toggle-ordered-list.ts +0 -54
- package/src/core/selection/style/api/toggle-commit-styles.ts +0 -35
- package/src/core/selection/style/api/wrap-ordered-list.ts +0 -42
- package/types/core/selection/style/api/toggle/toggle-css.d.ts +0 -12
- package/types/core/selection/style/api/toggle-commit-styles.d.ts +0 -13
package/README.md
CHANGED
|
@@ -58,9 +58,9 @@ ES2018 Version (if your users use only modern browsers)
|
|
|
58
58
|
```html
|
|
59
59
|
<link
|
|
60
60
|
rel="stylesheet"
|
|
61
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.
|
|
61
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.24.2/jodit.es2018.min.css"
|
|
62
62
|
/>
|
|
63
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.
|
|
63
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/3.24.2/jodit.es2018.min.js"></script>
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
#### unpkg
|
|
@@ -69,9 +69,9 @@ ES2018 Version (if your users use only modern browsers)
|
|
|
69
69
|
```html
|
|
70
70
|
<link
|
|
71
71
|
rel="stylesheet"
|
|
72
|
-
href="https://unpkg.com/jodit@3.
|
|
72
|
+
href="https://unpkg.com/jodit@3.24.2/build/jodit.es2018.min.css"
|
|
73
73
|
/>
|
|
74
|
-
<script src="https://unpkg.com/jodit@3.
|
|
74
|
+
<script src="https://unpkg.com/jodit@3.24.2/build/jodit.es2018.min.js"></script>
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
|
package/build/jodit.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
4
|
-
* Version: v3.
|
|
4
|
+
* Version: v3.24.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
11
|
-
* Version: v3.
|
|
11
|
+
* Version: v3.24.2
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|
|
@@ -1796,7 +1796,8 @@ svg.jodit-icon {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
.jodit-dialog_static_true {
|
|
1799
|
-
position:
|
|
1799
|
+
position: relative;
|
|
1800
|
+
z-index: inherit;
|
|
1800
1801
|
display: block;
|
|
1801
1802
|
width: auto;
|
|
1802
1803
|
height: auto;
|
|
@@ -1805,6 +1806,7 @@ svg.jodit-icon {
|
|
|
1805
1806
|
}
|
|
1806
1807
|
.jodit-dialog_static_true .jodit-dialog__panel {
|
|
1807
1808
|
position: relative;
|
|
1809
|
+
z-index: inherit;
|
|
1808
1810
|
top: auto !important;
|
|
1809
1811
|
left: auto !important;
|
|
1810
1812
|
width: 100% !important;
|
|
@@ -2051,6 +2053,9 @@ svg.jodit-icon {
|
|
|
2051
2053
|
.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer {
|
|
2052
2054
|
display: none;
|
|
2053
2055
|
}
|
|
2056
|
+
.jodit-dialog .jodit-ui-messages {
|
|
2057
|
+
z-index: 20000004;
|
|
2058
|
+
}
|
|
2054
2059
|
|
|
2055
2060
|
/*!
|
|
2056
2061
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
package/build/jodit.es2018.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
4
|
-
* Version: v3.
|
|
4
|
+
* Version: v3.24.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1600,7 +1600,8 @@ svg.jodit-icon {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
.jodit-dialog_static_true {
|
|
1603
|
-
position:
|
|
1603
|
+
position: relative;
|
|
1604
|
+
z-index: inherit;
|
|
1604
1605
|
display: block;
|
|
1605
1606
|
width: auto;
|
|
1606
1607
|
height: auto;
|
|
@@ -1608,6 +1609,7 @@ svg.jodit-icon {
|
|
|
1608
1609
|
}
|
|
1609
1610
|
.jodit-dialog_static_true .jodit-dialog__panel {
|
|
1610
1611
|
position: relative;
|
|
1612
|
+
z-index: inherit;
|
|
1611
1613
|
top: auto !important;
|
|
1612
1614
|
left: auto !important;
|
|
1613
1615
|
width: 100% !important;
|
|
@@ -1799,6 +1801,9 @@ svg.jodit-icon {
|
|
|
1799
1801
|
.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer {
|
|
1800
1802
|
display: none;
|
|
1801
1803
|
}
|
|
1804
|
+
.jodit-dialog .jodit-ui-messages {
|
|
1805
|
+
z-index: var(--jd-z-index-dialog);
|
|
1806
|
+
}
|
|
1802
1807
|
|
|
1803
1808
|
/*!
|
|
1804
1809
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
|
|
4
|
-
* Version: v3.
|
|
4
|
+
* Version: v3.24.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1600,7 +1600,8 @@ svg.jodit-icon {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
.jodit-dialog_static_true {
|
|
1603
|
-
position:
|
|
1603
|
+
position: relative;
|
|
1604
|
+
z-index: inherit;
|
|
1604
1605
|
display: block;
|
|
1605
1606
|
width: auto;
|
|
1606
1607
|
height: auto;
|
|
@@ -1608,6 +1609,7 @@ svg.jodit-icon {
|
|
|
1608
1609
|
}
|
|
1609
1610
|
.jodit-dialog_static_true .jodit-dialog__panel {
|
|
1610
1611
|
position: relative;
|
|
1612
|
+
z-index: inherit;
|
|
1611
1613
|
top: auto !important;
|
|
1612
1614
|
left: auto !important;
|
|
1613
1615
|
width: 100% !important;
|
|
@@ -1799,6 +1801,9 @@ svg.jodit-icon {
|
|
|
1799
1801
|
.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer {
|
|
1800
1802
|
display: none;
|
|
1801
1803
|
}
|
|
1804
|
+
.jodit-dialog .jodit-ui-messages {
|
|
1805
|
+
z-index: var(--jd-z-index-dialog);
|
|
1806
|
+
}
|
|
1802
1807
|
|
|
1803
1808
|
/*!
|
|
1804
1809
|
* Jodit Editor (https://xdsoft.net/jodit/)
|