jodit 4.0.0-beta.95 → 4.0.0-beta.99
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 +21 -5
- package/README.md +4 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +95 -88
- 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 +95 -88
- 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 +95 -88
- 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 +95 -88
- 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 +104 -97
- 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/async/async.d.ts +1 -1
- package/esm/core/async/async.js +4 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/string/ucfirst.js +1 -1
- package/esm/core/helpers/utils/index.d.ts +0 -1
- package/esm/core/helpers/utils/index.js +0 -1
- package/esm/core/selection/interface.d.ts +1 -1
- package/esm/core/ui/form/inputs/area/area.d.ts +1 -1
- package/esm/core/ui/form/inputs/area/area.js +1 -1
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +1 -1
- package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
- package/esm/core/ui/form/inputs/file/file.js +1 -1
- package/esm/core/ui/form/inputs/index.d.ts +1 -1
- package/esm/core/ui/form/inputs/index.js +1 -1
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
- package/esm/core/ui/form/inputs/input/input.js +1 -1
- package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
- package/esm/core/ui/form/inputs/select/select.js +1 -1
- package/esm/modules/messages/messages.d.ts +28 -0
- package/esm/modules/messages/messages.js +28 -0
- package/esm/modules/table/table.d.ts +4 -2
- package/esm/modules/table/table.js +2 -0
- package/esm/modules/widget/color-picker/color-picker.d.ts +1 -1
- package/esm/modules/widget/color-picker/color-picker.js +1 -1
- package/esm/modules/widget/file-selector/file-selector.d.ts +1 -18
- package/esm/modules/widget/file-selector/file-selector.js +12 -19
- package/esm/modules/widget/tabs/tabs.d.ts +17 -6
- package/esm/modules/widget/tabs/tabs.js +17 -6
- package/package.json +1 -1
- package/types/core/async/async.d.ts +1 -1
- package/types/core/helpers/utils/index.d.ts +0 -1
- package/types/core/selection/interface.d.ts +1 -1
- package/types/core/ui/form/inputs/area/area.d.ts +1 -1
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
- package/types/core/ui/form/inputs/file/file.d.ts +1 -1
- package/types/core/ui/form/inputs/index.d.ts +1 -1
- package/types/core/ui/form/inputs/input/input.d.ts +1 -1
- package/types/core/ui/form/inputs/select/select.d.ts +1 -1
- package/types/modules/messages/messages.d.ts +28 -0
- package/types/modules/table/table.d.ts +4 -2
- package/types/modules/widget/color-picker/color-picker.d.ts +1 -1
- package/types/modules/widget/file-selector/file-selector.d.ts +1 -18
- package/types/modules/widget/tabs/tabs.d.ts +17 -6
- package/esm/core/helpers/utils/val.d.ts +0 -9
- package/esm/core/helpers/utils/val.js +0 -18
- package/types/core/helpers/utils/val.d.ts +0 -9
|
@@ -25,9 +25,37 @@ export declare class UIMessages extends UIGroup implements IMessages {
|
|
|
25
25
|
defaultTimeout: number;
|
|
26
26
|
defaultOffset: number;
|
|
27
27
|
});
|
|
28
|
+
/**
|
|
29
|
+
* Show popup info message in the lower right corner of the container
|
|
30
|
+
* ```js
|
|
31
|
+
* const jodit = Jodit.make('#editor');
|
|
32
|
+
* jodit.info('Hello world', 3000);
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
28
35
|
info(text: string, timeout?: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* Show popup success message in the lower right corner of the container
|
|
38
|
+
* ```js
|
|
39
|
+
* const jodit = Jodit.make('#editor');
|
|
40
|
+
* jodit.success('Hello world', 3000);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
29
43
|
success(text: string, timeout?: number): void;
|
|
44
|
+
/**
|
|
45
|
+
* Show popup error message in the lower right corner of the container
|
|
46
|
+
* ```js
|
|
47
|
+
* const jodit = Jodit.make('#editor');
|
|
48
|
+
* jodit.error('Hello world', 3000);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
30
51
|
error(text: string, timeout?: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* Show popup message in the lower right corner of the container
|
|
54
|
+
* ```js
|
|
55
|
+
* const jodit = Jodit.make('#editor');
|
|
56
|
+
* jodit.message('Hello world', 'info', 3000);
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
31
59
|
message(text: string, variant?: MessageVariant, timeout?: number): void;
|
|
32
60
|
private __message;
|
|
33
61
|
private __getRemoveCallback;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/table
|
|
10
10
|
*/
|
|
11
|
-
import type { ICreate, IJodit } from "jodit/esm/types";
|
|
11
|
+
import type { ICreate, IJodit, Prettify } from "jodit/esm/types";
|
|
12
12
|
import { ViewComponent } from "jodit/esm/core/component";
|
|
13
13
|
export declare class Table extends ViewComponent<IJodit> {
|
|
14
14
|
/** @override */
|
|
@@ -45,11 +45,13 @@ export declare class Table extends ViewComponent<IJodit> {
|
|
|
45
45
|
/**
|
|
46
46
|
* Inserts a new line after row what contains the selected cell
|
|
47
47
|
*
|
|
48
|
+
* @param table - Working table
|
|
48
49
|
* @param line - Insert a new line after/before this
|
|
49
50
|
* line contains the selected cell
|
|
50
51
|
* @param after - Insert a new line after line contains the selected cell
|
|
52
|
+
* @param create - Instance of Create class
|
|
51
53
|
*/
|
|
52
|
-
static appendRow(table: HTMLTableElement, line: false | HTMLTableRowElement, after: boolean, create: ICreate): void;
|
|
54
|
+
static appendRow(table: HTMLTableElement, line: false | HTMLTableRowElement, after: boolean, create: Prettify<Pick<ICreate, 'element'>>): void;
|
|
53
55
|
/**
|
|
54
56
|
* Remove row
|
|
55
57
|
*/
|
|
@@ -17,7 +17,7 @@ import type { IJodit } from "jodit/esm/types";
|
|
|
17
17
|
* @param coldColor - Color value ex. #fff or rgb(123, 123, 123) or rgba(123, 123, 123, 1)
|
|
18
18
|
* @example
|
|
19
19
|
* ```javascript
|
|
20
|
-
*
|
|
20
|
+
* const tabs = TabsWidget(editor, {
|
|
21
21
|
* 'Text' : ColorPickerWidget(editor, function (color) {
|
|
22
22
|
* box.style.color = color;
|
|
23
23
|
* }, box.style.color),
|
|
@@ -28,27 +28,10 @@ interface ImageSelectorCallbacks {
|
|
|
28
28
|
* Generate 3 tabs
|
|
29
29
|
* upload - Use Drag and Drop
|
|
30
30
|
* url - By specifying the image url
|
|
31
|
-
* filebrowser - After opening the file browser
|
|
31
|
+
* filebrowser - After opening the file browser. In the absence of one of the parameters will be less tabs
|
|
32
32
|
*
|
|
33
33
|
* @param callbacks - Object with keys `url`, `upload` and `filebrowser`, values which are callback
|
|
34
34
|
* functions with different parameters
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```javascript
|
|
38
|
-
* let widget = new Jodit.modules.Widget(editor);
|
|
39
|
-
*
|
|
40
|
-
* return widget.c('ImageSelector', {
|
|
41
|
-
* url: function (url, alt) {
|
|
42
|
-
* editor.selections.insertImage(url);
|
|
43
|
-
* },
|
|
44
|
-
* upload: function (images) {
|
|
45
|
-
* editor.selections.insertImage(images[0]);
|
|
46
|
-
* },
|
|
47
|
-
* filebrowser: function (images) {
|
|
48
|
-
* editor.selections.insertImage(images[0]);
|
|
49
|
-
* }
|
|
50
|
-
* }, image);
|
|
51
|
-
* ```
|
|
52
35
|
*/
|
|
53
36
|
export declare const FileSelectorWidget: (editor: IJodit, callbacks: ImageSelectorCallbacks, elm: HTMLElement | null, close: () => void, isImage?: boolean) => HTMLDivElement;
|
|
54
37
|
export {};
|
|
@@ -24,12 +24,23 @@ export interface TabOption {
|
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```javascript
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
27
|
+
* const editor = Jodit.make('#editor');
|
|
28
|
+
* const tabs = Jodit.modules.TabsWidget(editor, [
|
|
29
|
+
* { name: 'Images', content: '<div>Images</div>' },
|
|
30
|
+
* {
|
|
31
|
+
* name: 'Title 2',
|
|
32
|
+
* content: editor.c.fromHTML('<div>Some content</div>')
|
|
33
|
+
* },
|
|
34
|
+
* {
|
|
35
|
+
* name: 'Color Picker',
|
|
36
|
+
* content: ColorPickerWidget(
|
|
37
|
+
* editor,
|
|
38
|
+
* function (color) {
|
|
39
|
+
* box.style.color = color;
|
|
40
|
+
* },
|
|
41
|
+
* box.style.color
|
|
42
|
+
* )
|
|
43
|
+
* }
|
|
33
44
|
* ]);
|
|
34
45
|
* ```
|
|
35
46
|
*/
|
|
@@ -1,9 +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-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/utils
|
|
8
|
-
*/
|
|
9
|
-
export declare const val: (elm: HTMLInputElement | HTMLElement, selector: string, value?: string | null) => string;
|
|
@@ -1,18 +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-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/utils
|
|
8
|
-
*/
|
|
9
|
-
export const val = (elm, selector, value) => {
|
|
10
|
-
const child = elm.querySelector(selector);
|
|
11
|
-
if (!child) {
|
|
12
|
-
return '';
|
|
13
|
-
}
|
|
14
|
-
if (value) {
|
|
15
|
-
child.value = value;
|
|
16
|
-
}
|
|
17
|
-
return child.value;
|
|
18
|
-
};
|
|
@@ -1,9 +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-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module helpers/utils
|
|
8
|
-
*/
|
|
9
|
-
export declare const val: (elm: HTMLInputElement | HTMLElement, selector: string, value?: string | null) => string;
|