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
package/esm/core/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.0.0-beta.
|
|
6
|
+
export const APP_VERSION = "4.0.0-beta.88";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
import type { ICommitStyle } from "jodit/esm/types";
|
|
6
7
|
/**
|
|
7
8
|
* @module selection
|
|
8
9
|
*/
|
|
@@ -15,5 +16,9 @@ declare module 'jodit/types/events' {
|
|
|
15
16
|
* true - element is not significant
|
|
16
17
|
*/
|
|
17
18
|
on(event: 'isInvisibleForCursor', callback: (elm: HTMLElement) => void | true): this;
|
|
19
|
+
/**
|
|
20
|
+
* Triggered after the style is applied to the element
|
|
21
|
+
*/
|
|
22
|
+
on(event: 'afterCommitStyle', style: ICommitStyle): this;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
@@ -42,7 +42,7 @@ export const UIButtonState = () => ({
|
|
|
42
42
|
text: '',
|
|
43
43
|
tabIndex: undefined
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
let UIButton = class UIButton extends UIElement {
|
|
46
46
|
/** @override */
|
|
47
47
|
className() {
|
|
48
48
|
return 'UIButton';
|
|
@@ -244,6 +244,7 @@ __decorate([
|
|
|
244
244
|
UIButton = __decorate([
|
|
245
245
|
component
|
|
246
246
|
], UIButton);
|
|
247
|
+
export { UIButton };
|
|
247
248
|
export function Button(jodit, stateOrText, text, variant) {
|
|
248
249
|
const button = new UIButton(jodit);
|
|
249
250
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
@@ -20,7 +20,7 @@ import { UIGroup } from "jodit/esm/core/ui/group/group.js";
|
|
|
20
20
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
21
21
|
import { UIButton } from "jodit/esm/core/ui/button/button/button.js";
|
|
22
22
|
import { assert } from "jodit/esm/core/helpers/utils/assert.js";
|
|
23
|
-
|
|
23
|
+
let UIButtonGroup = class UIButtonGroup extends UIGroup {
|
|
24
24
|
/** @override */
|
|
25
25
|
className() {
|
|
26
26
|
return 'UIButtonGroup';
|
|
@@ -77,3 +77,4 @@ export let UIButtonGroup = class UIButtonGroup extends UIGroup {
|
|
|
77
77
|
UIButtonGroup = __decorate([
|
|
78
78
|
component
|
|
79
79
|
], UIButtonGroup);
|
|
80
|
+
export { UIButtonGroup };
|
|
@@ -26,7 +26,7 @@ import { UIElement } from "jodit/esm/core/ui/element.js";
|
|
|
26
26
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
27
27
|
import { position } from "jodit/esm/core/helpers/size/position.js";
|
|
28
28
|
import { STATUSES } from "jodit/esm/core/component/index.js";
|
|
29
|
-
|
|
29
|
+
let UITooltip = UITooltip_1 = class UITooltip extends UIElement {
|
|
30
30
|
className() {
|
|
31
31
|
return 'UITooltip';
|
|
32
32
|
}
|
|
@@ -185,3 +185,4 @@ __decorate([
|
|
|
185
185
|
UITooltip = UITooltip_1 = __decorate([
|
|
186
186
|
component
|
|
187
187
|
], UITooltip);
|
|
188
|
+
export { UITooltip };
|
package/esm/core/ui/element.js
CHANGED
|
@@ -21,7 +21,7 @@ import { Elms } from "jodit/esm/core/traits/elms.js";
|
|
|
21
21
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
22
22
|
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
23
23
|
import { derive } from "jodit/esm/core/decorators/derive/derive.js";
|
|
24
|
-
|
|
24
|
+
let UIElement = UIElement_1 = class UIElement extends ViewComponent {
|
|
25
25
|
get parentElement() {
|
|
26
26
|
return this.__parentElement;
|
|
27
27
|
}
|
|
@@ -147,3 +147,4 @@ export let UIElement = UIElement_1 = class UIElement extends ViewComponent {
|
|
|
147
147
|
UIElement = UIElement_1 = __decorate([
|
|
148
148
|
derive(Mods, Elms)
|
|
149
149
|
], UIElement);
|
|
150
|
+
export { UIElement };
|
|
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
import { UIGroup } from "jodit/esm/core/ui/group/group.js";
|
|
20
20
|
import { attr } from "jodit/esm/core/helpers/utils/index.js";
|
|
21
21
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
22
|
-
|
|
22
|
+
let UIBlock = class UIBlock extends UIGroup {
|
|
23
23
|
/** @override */
|
|
24
24
|
className() {
|
|
25
25
|
return 'UIBlock';
|
|
@@ -41,3 +41,4 @@ export let UIBlock = class UIBlock extends UIGroup {
|
|
|
41
41
|
UIBlock = __decorate([
|
|
42
42
|
component
|
|
43
43
|
], UIBlock);
|
|
44
|
+
export { UIBlock };
|
package/esm/core/ui/form/form.js
CHANGED
|
@@ -19,7 +19,7 @@ import { UISelect } from "jodit/esm/core/ui/form/inputs/select/select.js";
|
|
|
19
19
|
import { attr } from "jodit/esm/core/helpers/utils/index.js";
|
|
20
20
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
21
21
|
import { Component } from "jodit/esm/core/component/component.js";
|
|
22
|
-
|
|
22
|
+
let UIForm = class UIForm extends UIGroup {
|
|
23
23
|
/** @override */
|
|
24
24
|
className() {
|
|
25
25
|
return 'UIForm';
|
|
@@ -72,3 +72,4 @@ export let UIForm = class UIForm extends UIGroup {
|
|
|
72
72
|
UIForm = __decorate([
|
|
73
73
|
component
|
|
74
74
|
], UIForm);
|
|
75
|
+
export { UIForm };
|
|
@@ -19,7 +19,7 @@ var UITextArea_1;
|
|
|
19
19
|
*/
|
|
20
20
|
import { UIInput } from "jodit/esm/core/ui/form/inputs/input/input.js";
|
|
21
21
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
22
|
-
|
|
22
|
+
let UITextArea = UITextArea_1 = class UITextArea extends UIInput {
|
|
23
23
|
/** @override */
|
|
24
24
|
className() {
|
|
25
25
|
return 'UITextArea';
|
|
@@ -44,3 +44,4 @@ UITextArea.defaultState = {
|
|
|
44
44
|
UITextArea = UITextArea_1 = __decorate([
|
|
45
45
|
component
|
|
46
46
|
], UITextArea);
|
|
47
|
+
export { UITextArea };
|
|
@@ -20,7 +20,7 @@ var UICheckbox_1;
|
|
|
20
20
|
import { UIInput } from "jodit/esm/core/ui/form/inputs/input/input.js";
|
|
21
21
|
import { component, watch, hook } from "jodit/esm/core/decorators/index.js";
|
|
22
22
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
23
|
-
|
|
23
|
+
let UICheckbox = UICheckbox_1 = class UICheckbox extends UIInput {
|
|
24
24
|
/** @override */
|
|
25
25
|
className() {
|
|
26
26
|
return 'UICheckbox';
|
|
@@ -80,3 +80,4 @@ __decorate([
|
|
|
80
80
|
UICheckbox = UICheckbox_1 = __decorate([
|
|
81
81
|
component
|
|
82
82
|
], UICheckbox);
|
|
83
|
+
export { UICheckbox };
|
|
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
import { UIInput } from "jodit/esm/core/ui/form/inputs/input/input.js";
|
|
20
20
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
21
21
|
import { UIButton } from "jodit/esm/core/ui/button/button/button.js";
|
|
22
|
-
|
|
22
|
+
let UIFileInput = class UIFileInput extends UIInput {
|
|
23
23
|
/** @override */
|
|
24
24
|
className() {
|
|
25
25
|
return 'UIFileInput';
|
|
@@ -64,3 +64,4 @@ export let UIFileInput = class UIFileInput extends UIInput {
|
|
|
64
64
|
UIFileInput = __decorate([
|
|
65
65
|
component
|
|
66
66
|
], UIFileInput);
|
|
67
|
+
export { UIFileInput };
|
|
@@ -24,7 +24,7 @@ import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
|
24
24
|
import { autobind, component, debounce, watch } from "jodit/esm/core/decorators/index.js";
|
|
25
25
|
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
26
26
|
import { inputValidators } from "jodit/esm/core/ui/form/validators/index.js";
|
|
27
|
-
|
|
27
|
+
let UIInput = UIInput_1 = class UIInput extends UIElement {
|
|
28
28
|
/** @override */
|
|
29
29
|
className() {
|
|
30
30
|
return 'UIInput';
|
|
@@ -228,3 +228,4 @@ __decorate([
|
|
|
228
228
|
UIInput = UIInput_1 = __decorate([
|
|
229
229
|
component
|
|
230
230
|
], UIInput);
|
|
231
|
+
export { UIInput };
|
|
@@ -21,7 +21,7 @@ import { attr } from "jodit/esm/core/helpers/utils/attr.js";
|
|
|
21
21
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
22
22
|
import { UIInput } from "jodit/esm/core/ui/form/inputs/input/input.js";
|
|
23
23
|
import { inputValidators, selectValidators } from "jodit/esm/core/ui/form/validators/index.js";
|
|
24
|
-
|
|
24
|
+
let UISelect = UISelect_1 = class UISelect extends UIInput {
|
|
25
25
|
/** @override */
|
|
26
26
|
className() {
|
|
27
27
|
return 'UISelect';
|
|
@@ -80,3 +80,4 @@ UISelect.defaultState = {
|
|
|
80
80
|
UISelect = UISelect_1 = __decorate([
|
|
81
81
|
component
|
|
82
82
|
], UISelect);
|
|
83
|
+
export { UISelect };
|
|
@@ -25,7 +25,7 @@ import { isArray } from "jodit/esm/core/helpers/index.js";
|
|
|
25
25
|
import { assert } from "jodit/esm/core/helpers/utils/assert.js";
|
|
26
26
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
27
27
|
import { Component } from "jodit/esm/core/component/component.js";
|
|
28
|
-
|
|
28
|
+
let UIGroup = UIGroup_1 = class UIGroup extends UIElement {
|
|
29
29
|
className() {
|
|
30
30
|
return 'UIGroup';
|
|
31
31
|
}
|
|
@@ -142,3 +142,4 @@ __decorate([
|
|
|
142
142
|
UIGroup = UIGroup_1 = __decorate([
|
|
143
143
|
component
|
|
144
144
|
], UIGroup);
|
|
145
|
+
export { UIGroup };
|
|
@@ -26,7 +26,7 @@ import { isButtonGroup } from "jodit/esm/core/ui/helpers/buttons.js";
|
|
|
26
26
|
import { getControlType } from "jodit/esm/core/ui/helpers/get-control-type.js";
|
|
27
27
|
import { splitArray } from "jodit/esm/core/helpers/array/split-array.js";
|
|
28
28
|
import { Component } from "jodit/esm/core/component/component.js";
|
|
29
|
-
|
|
29
|
+
let UIList = class UIList extends UIGroup {
|
|
30
30
|
/** @override */
|
|
31
31
|
className() {
|
|
32
32
|
return 'UIList';
|
|
@@ -159,3 +159,4 @@ __decorate([
|
|
|
159
159
|
UIList = __decorate([
|
|
160
160
|
component
|
|
161
161
|
], UIList);
|
|
162
|
+
export { UIList };
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
*/
|
|
19
19
|
import { UIElement } from "jodit/esm/core/ui/element.js";
|
|
20
20
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
21
|
-
|
|
21
|
+
let UISeparator = class UISeparator extends UIElement {
|
|
22
22
|
className() {
|
|
23
23
|
return 'UISeparator';
|
|
24
24
|
}
|
|
@@ -26,3 +26,4 @@ export let UISeparator = class UISeparator extends UIElement {
|
|
|
26
26
|
UISeparator = __decorate([
|
|
27
27
|
component
|
|
28
28
|
], UISeparator);
|
|
29
|
+
export { UISeparator };
|
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
*/
|
|
19
19
|
import { UIElement } from "jodit/esm/core/ui/element.js";
|
|
20
20
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
21
|
-
|
|
21
|
+
let UISpacer = class UISpacer extends UIElement {
|
|
22
22
|
className() {
|
|
23
23
|
return 'UISpacer';
|
|
24
24
|
}
|
|
@@ -26,3 +26,4 @@ export let UISpacer = class UISpacer extends UIElement {
|
|
|
26
26
|
UISpacer = __decorate([
|
|
27
27
|
component
|
|
28
28
|
], UISpacer);
|
|
29
|
+
export { UISpacer };
|
package/esm/core/ui/icon.js
CHANGED
|
@@ -51,7 +51,10 @@ export class Icon {
|
|
|
51
51
|
let iconElement;
|
|
52
52
|
const { name, iconURL, fill } = icon;
|
|
53
53
|
const clearName = name.replace(/[^a-zA-Z0-9]/g, '_');
|
|
54
|
-
|
|
54
|
+
let iconFromEvent;
|
|
55
|
+
if (!/<svg/.test(name)) {
|
|
56
|
+
iconFromEvent = jodit.o.getIcon?.(name, clearName);
|
|
57
|
+
}
|
|
55
58
|
const cacheKey = `${name}${iconURL}${fill}${iconFromEvent ?? ''}`;
|
|
56
59
|
if (jodit.o.cache && this.__cache.has(cacheKey)) {
|
|
57
60
|
return this.__cache.get(cacheKey)?.cloneNode(true);
|
package/esm/core/view/view.js
CHANGED
|
@@ -24,7 +24,7 @@ import { Mods } from "jodit/esm/core/traits/mods.js";
|
|
|
24
24
|
import { Elms } from "jodit/esm/core/traits/elms.js";
|
|
25
25
|
import { EventEmitter } from "jodit/esm/core/event-emitter/index.js";
|
|
26
26
|
import { UIMessages } from "jodit/esm/modules/messages/messages.js";
|
|
27
|
-
|
|
27
|
+
let View = View_1 = class View extends Component {
|
|
28
28
|
/**
|
|
29
29
|
* Get path for loading extra staff
|
|
30
30
|
*/
|
|
@@ -271,6 +271,7 @@ __decorate([
|
|
|
271
271
|
View = View_1 = __decorate([
|
|
272
272
|
derive(Mods, Elms)
|
|
273
273
|
], View);
|
|
274
|
+
export { View };
|
|
274
275
|
View.defaultOptions = {
|
|
275
276
|
extraButtons: [],
|
|
276
277
|
cache: true,
|
package/esm/jodit.js
CHANGED
|
@@ -25,7 +25,7 @@ import { Dlgs } from "jodit/esm/core/traits/dlgs.js";
|
|
|
25
25
|
import { Ajax } from "jodit/esm/core/request/index.js";
|
|
26
26
|
const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
|
|
27
27
|
const __defaultClassesKey = 'data-jodit-default-classes';
|
|
28
|
-
|
|
28
|
+
let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
29
29
|
/** @override */
|
|
30
30
|
className() {
|
|
31
31
|
return 'Jodit';
|
|
@@ -1041,20 +1041,11 @@ export let Jodit = Jodit_1 = class Jodit extends ViewWithToolbar {
|
|
|
1041
1041
|
if (this.o.disabled) {
|
|
1042
1042
|
this.setDisabled(true);
|
|
1043
1043
|
}
|
|
1044
|
-
// if enter plugin
|
|
1044
|
+
// if enter plugin isn't installed
|
|
1045
1045
|
try {
|
|
1046
1046
|
this.ed.execCommand('defaultParagraphSeparator', false, this.o.enter.toLowerCase());
|
|
1047
1047
|
}
|
|
1048
1048
|
catch { }
|
|
1049
|
-
// fix for native resizing
|
|
1050
|
-
try {
|
|
1051
|
-
this.ed.execCommand('enableObjectResizing', false, 'false');
|
|
1052
|
-
}
|
|
1053
|
-
catch { }
|
|
1054
|
-
try {
|
|
1055
|
-
this.ed.execCommand('enableInlineTableEditing', false, 'false');
|
|
1056
|
-
}
|
|
1057
|
-
catch { }
|
|
1058
1049
|
});
|
|
1059
1050
|
}
|
|
1060
1051
|
/**
|
|
@@ -1257,6 +1248,7 @@ __decorate([
|
|
|
1257
1248
|
Jodit = Jodit_1 = __decorate([
|
|
1258
1249
|
derive(Dlgs)
|
|
1259
1250
|
], Jodit);
|
|
1251
|
+
export { Jodit };
|
|
1260
1252
|
function addClassNames(className, elm) {
|
|
1261
1253
|
if (className) {
|
|
1262
1254
|
className.split(/\s+/).forEach(cn => elm.classList.add(cn));
|
|
@@ -25,7 +25,7 @@ import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
|
25
25
|
/**
|
|
26
26
|
* Module to generate context menu
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
let ContextMenu = class ContextMenu extends Popup {
|
|
29
29
|
/** @override */
|
|
30
30
|
className() {
|
|
31
31
|
return 'ContextMenu';
|
|
@@ -66,3 +66,4 @@ export let ContextMenu = class ContextMenu extends Popup {
|
|
|
66
66
|
ContextMenu = __decorate([
|
|
67
67
|
component
|
|
68
68
|
], ContextMenu);
|
|
69
|
+
export { ContextMenu };
|
|
@@ -56,7 +56,7 @@ Config.prototype.controls.dialog = {
|
|
|
56
56
|
/**
|
|
57
57
|
* Module to generate dialog windows
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
let Dialog = class Dialog extends ViewWithToolbar {
|
|
60
60
|
/** @override */
|
|
61
61
|
className() {
|
|
62
62
|
return 'Dialog';
|
|
@@ -601,3 +601,4 @@ __decorate([
|
|
|
601
601
|
Dialog = __decorate([
|
|
602
602
|
component
|
|
603
603
|
], Dialog);
|
|
604
|
+
export { Dialog };
|
|
@@ -36,7 +36,7 @@ import { Dlgs } from "jodit/esm/core/traits/dlgs.js";
|
|
|
36
36
|
import { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar.js";
|
|
37
37
|
import "./config";
|
|
38
38
|
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
39
|
-
|
|
39
|
+
let FileBrowser = class FileBrowser extends ViewWithToolbar {
|
|
40
40
|
/** @override */
|
|
41
41
|
className() {
|
|
42
42
|
return 'Filebrowser';
|
|
@@ -329,6 +329,7 @@ __decorate([
|
|
|
329
329
|
FileBrowser = __decorate([
|
|
330
330
|
derive(Dlgs)
|
|
331
331
|
], FileBrowser);
|
|
332
|
+
export { FileBrowser };
|
|
332
333
|
/**
|
|
333
334
|
* @private
|
|
334
335
|
*/
|
|
@@ -36,7 +36,7 @@ const TABS = {
|
|
|
36
36
|
* The module allows you to edit the image: resize or cut any part of it
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
let ImageEditor = ImageEditor_1 = class ImageEditor extends ViewComponent {
|
|
40
40
|
/** @override */
|
|
41
41
|
className() {
|
|
42
42
|
return 'ImageEditor';
|
|
@@ -557,6 +557,7 @@ __decorate([
|
|
|
557
557
|
ImageEditor = ImageEditor_1 = __decorate([
|
|
558
558
|
component
|
|
559
559
|
], ImageEditor);
|
|
560
|
+
export { ImageEditor };
|
|
560
561
|
/**
|
|
561
562
|
* Open Image Editor
|
|
562
563
|
*/
|
|
@@ -15,7 +15,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
15
15
|
};
|
|
16
16
|
import { UIElement } from "jodit/esm/core/ui/index.js";
|
|
17
17
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
18
|
-
|
|
18
|
+
let UIMessage = class UIMessage extends UIElement {
|
|
19
19
|
className() {
|
|
20
20
|
return 'UIMessage';
|
|
21
21
|
}
|
|
@@ -29,3 +29,4 @@ export let UIMessage = class UIMessage extends UIElement {
|
|
|
29
29
|
UIMessage = __decorate([
|
|
30
30
|
component
|
|
31
31
|
], UIMessage);
|
|
32
|
+
export { UIMessage };
|
|
@@ -25,7 +25,7 @@ import { UIMessage } from "jodit/esm/modules/messages/message.js";
|
|
|
25
25
|
/**
|
|
26
26
|
* Plugin display pop-up messages in the lower right corner of the editor
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
let UIMessages = class UIMessages extends UIGroup {
|
|
29
29
|
className() {
|
|
30
30
|
return 'UIMessages';
|
|
31
31
|
}
|
|
@@ -97,3 +97,4 @@ export let UIMessages = class UIMessages extends UIGroup {
|
|
|
97
97
|
UIMessages = __decorate([
|
|
98
98
|
component
|
|
99
99
|
], UIMessages);
|
|
100
|
+
export { UIMessages };
|
|
@@ -23,7 +23,7 @@ import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
|
23
23
|
import { Mods } from "jodit/esm/core/traits/mods.js";
|
|
24
24
|
import { Elms } from "jodit/esm/core/traits/elms.js";
|
|
25
25
|
import { derive, component } from "jodit/esm/core/decorators/index.js";
|
|
26
|
-
|
|
26
|
+
let StatusBar = class StatusBar extends ViewComponent {
|
|
27
27
|
className() {
|
|
28
28
|
return 'StatusBar';
|
|
29
29
|
}
|
|
@@ -97,3 +97,4 @@ StatusBar = __decorate([
|
|
|
97
97
|
component,
|
|
98
98
|
derive(Mods, Elms)
|
|
99
99
|
], StatusBar);
|
|
100
|
+
export { StatusBar };
|
|
@@ -28,7 +28,7 @@ import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
|
28
28
|
import { ToolbarCollection } from "jodit/esm/modules/toolbar/collection/collection.js";
|
|
29
29
|
import { STATUSES } from "jodit/esm/core/component/statuses.js";
|
|
30
30
|
import { findControlType } from "jodit/esm/core/ui/helpers/get-control-type.js";
|
|
31
|
-
|
|
31
|
+
let ToolbarButton = class ToolbarButton extends UIButton {
|
|
32
32
|
/** @override */
|
|
33
33
|
className() {
|
|
34
34
|
return 'ToolbarButton';
|
|
@@ -396,3 +396,4 @@ __decorate([
|
|
|
396
396
|
ToolbarButton = __decorate([
|
|
397
397
|
component
|
|
398
398
|
], ToolbarButton);
|
|
399
|
+
export { ToolbarButton };
|
|
@@ -20,7 +20,7 @@ import { UIButton } from "jodit/esm/core/ui/button/index.js";
|
|
|
20
20
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
21
21
|
import { isString, attr } from "jodit/esm/core/helpers/index.js";
|
|
22
22
|
import { component } from "jodit/esm/core/decorators/index.js";
|
|
23
|
-
|
|
23
|
+
let ToolbarContent = class ToolbarContent extends UIButton {
|
|
24
24
|
/** @override */
|
|
25
25
|
className() {
|
|
26
26
|
return 'ToolbarContent';
|
|
@@ -49,3 +49,4 @@ export let ToolbarContent = class ToolbarContent extends UIButton {
|
|
|
49
49
|
ToolbarContent = __decorate([
|
|
50
50
|
component
|
|
51
51
|
], ToolbarContent);
|
|
52
|
+
export { ToolbarContent };
|
|
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
19
19
|
import { component } from "jodit/esm/core/decorators/index.js";
|
|
20
20
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
21
21
|
import { ToolbarButton } from "../button";
|
|
22
|
-
|
|
22
|
+
let ToolbarSelect = class ToolbarSelect extends ToolbarButton {
|
|
23
23
|
className() {
|
|
24
24
|
return 'ToolbarSelect';
|
|
25
25
|
}
|
|
@@ -45,3 +45,4 @@ export let ToolbarSelect = class ToolbarSelect extends ToolbarButton {
|
|
|
45
45
|
ToolbarSelect = __decorate([
|
|
46
46
|
component
|
|
47
47
|
], ToolbarSelect);
|
|
48
|
+
export { ToolbarSelect };
|
|
@@ -22,7 +22,7 @@ import { error } from "jodit/esm/core/helpers/utils/error/error.js";
|
|
|
22
22
|
import { UIList, UITooltip } from "jodit/esm/core/ui/index.js";
|
|
23
23
|
import { component, autobind } from "jodit/esm/core/decorators/index.js";
|
|
24
24
|
import { makeButton, makeSelect } from "jodit/esm/modules/toolbar/factory.js";
|
|
25
|
-
|
|
25
|
+
let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
26
26
|
/** @override */
|
|
27
27
|
className() {
|
|
28
28
|
return 'ToolbarCollection';
|
|
@@ -122,3 +122,4 @@ __decorate([
|
|
|
122
122
|
ToolbarCollection = __decorate([
|
|
123
123
|
component
|
|
124
124
|
], ToolbarCollection);
|
|
125
|
+
export { ToolbarCollection };
|
|
@@ -21,7 +21,7 @@ import * as consts from "jodit/esm/core/constants.js";
|
|
|
21
21
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
22
22
|
import { css, isFunction } from "jodit/esm/core/helpers/index.js";
|
|
23
23
|
import { component } from "jodit/esm/core/decorators/index.js";
|
|
24
|
-
|
|
24
|
+
let ToolbarEditorCollection = class ToolbarEditorCollection extends ToolbarCollection {
|
|
25
25
|
/** @override */
|
|
26
26
|
className() {
|
|
27
27
|
return 'ToolbarEditorCollection';
|
|
@@ -136,3 +136,4 @@ export let ToolbarEditorCollection = class ToolbarEditorCollection extends Toolb
|
|
|
136
136
|
ToolbarEditorCollection = __decorate([
|
|
137
137
|
component
|
|
138
138
|
], ToolbarEditorCollection);
|
|
139
|
+
export { ToolbarEditorCollection };
|
|
@@ -10,11 +10,12 @@ export type DeleteMode = 'char' | 'word' | 'sentence';
|
|
|
10
10
|
declare module 'jodit/types/events' {
|
|
11
11
|
interface IEventEmitter {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Enables content preparation prior to deletion, or allows for a complete
|
|
14
|
+
* override of the deletion logic if true is returned.
|
|
14
15
|
*/
|
|
15
16
|
on(event: 'backSpaceBeforeCases', callback: (backspace: boolean, fakeNode: Node) => void | true): this;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Triggers after the Backspace or Delete key has been pressed and processed.
|
|
18
19
|
*/
|
|
19
20
|
on(event: 'backSpaceAfterDelete', callback: (backspace: boolean, fakeNode: Node) => void): this;
|
|
20
21
|
}
|
|
@@ -22,27 +23,27 @@ declare module 'jodit/types/events' {
|
|
|
22
23
|
declare module 'jodit/types/jodit' {
|
|
23
24
|
interface IJodit {
|
|
24
25
|
/**
|
|
25
|
-
* Backspace plugin:
|
|
26
|
+
* Backspace plugin: Deletes the next character or selected text.
|
|
26
27
|
*/
|
|
27
28
|
execCommand(command: 'deleteButton'): void;
|
|
28
29
|
/**
|
|
29
|
-
* Backspace plugin:
|
|
30
|
+
* Backspace plugin: Deletes the previous character or selected text.
|
|
30
31
|
*/
|
|
31
32
|
execCommand(command: 'backspaceButton'): void;
|
|
32
33
|
/**
|
|
33
|
-
* Backspace plugin:
|
|
34
|
+
* Backspace plugin: Deletes the next word or selected text.
|
|
34
35
|
*/
|
|
35
36
|
execCommand(command: 'deleteWordButton'): void;
|
|
36
37
|
/**
|
|
37
|
-
* Backspace plugin:
|
|
38
|
+
* Backspace plugin: Deletes the previous word or selected text.
|
|
38
39
|
*/
|
|
39
40
|
execCommand(command: 'backspaceWordButton'): void;
|
|
40
41
|
/**
|
|
41
|
-
* Backspace plugin:
|
|
42
|
+
* Backspace plugin: Deletes the next sentence or selected text.
|
|
42
43
|
*/
|
|
43
44
|
execCommand(command: 'deleteSentenceButton'): void;
|
|
44
45
|
/**
|
|
45
|
-
* Backspace plugin:
|
|
46
|
+
* Backspace plugin: Deletes the previous sentence or selected text.
|
|
46
47
|
*/
|
|
47
48
|
execCommand(command: 'backspaceSentenceButton'): void;
|
|
48
49
|
}
|
|
@@ -19,7 +19,7 @@ import { autobind } from "jodit/esm/core/decorators/index.js";
|
|
|
19
19
|
import { Icon } from "jodit/esm/core/ui/index.js";
|
|
20
20
|
import { pluginSystem } from "jodit/esm/core/global.js";
|
|
21
21
|
import "./config";
|
|
22
|
-
|
|
22
|
+
let resizeHandler = class resizeHandler extends Plugin {
|
|
23
23
|
constructor() {
|
|
24
24
|
super(...arguments);
|
|
25
25
|
/**
|
|
@@ -110,4 +110,5 @@ resizeHandler.requires = ['size'];
|
|
|
110
110
|
resizeHandler = __decorate([
|
|
111
111
|
autobind
|
|
112
112
|
], resizeHandler);
|
|
113
|
+
export { resizeHandler };
|
|
113
114
|
pluginSystem.add('resizeHandler', resizeHandler);
|