jodit 3.13.2 → 3.13.3
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/workspace.xml +95 -91
- package/CHANGELOG.MD +27 -5
- 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 +147 -53
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +147 -53
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +346 -211
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +1 -1
- package/package.json +16 -16
- package/src/core/constants.ts +1 -1
- package/src/core/helpers/utils/css.ts +6 -1
- package/src/core/selection/style/api/get-suit-parent.ts +18 -4
- package/src/core/selection/style/commit-style.ts +10 -0
- package/src/core/ui/form/block/block.ts +3 -0
- package/src/jodit.ts +25 -6
- package/src/modules/file-browser/data-provider.ts +1 -1
- package/src/modules/file-browser/file-browser.ts +1 -0
- package/src/modules/image-editor/image-editor.ts +14 -26
- package/src/modules/status-bar/status-bar.ts +21 -13
- package/src/modules/toolbar/button/button.ts +1 -1
- package/src/plugins/index.ts +1 -0
- package/src/plugins/inline-popup/config/config.ts +1 -0
- package/src/plugins/keyboard/tab/README.md +1 -0
- package/src/plugins/keyboard/tab/cases/index.ts +6 -0
- package/src/plugins/keyboard/tab/cases/on-tab-inside-li.ts +51 -0
- package/src/plugins/keyboard/tab/config.ts +26 -0
- package/src/plugins/keyboard/tab/tab.ts +32 -0
- package/src/plugins/resizer/resizer.ts +1 -0
- package/src/types/types.d.ts +1 -1
- package/types/core/create/create.d.ts +2 -2
- package/types/core/decorators/hook/hook.d.ts +1 -1
- package/types/core/helpers/utils/css.d.ts +1 -0
- package/types/core/helpers/utils/selector.d.ts +1 -1
- package/types/core/selection/style/commit-style.d.ts +4 -0
- package/types/core/ui/form/block/block.d.ts +2 -0
- package/types/core/ui/group/group.d.ts +2 -2
- package/types/jodit.d.ts +6 -0
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/keyboard/tab/cases/index.d.ts +6 -0
- package/types/plugins/keyboard/tab/cases/on-tab-inside-li.d.ts +14 -0
- package/types/plugins/keyboard/tab/config.d.ts +16 -0
- package/types/plugins/keyboard/tab/tab.d.ts +16 -0
- package/types/types/types.d.ts +1 -1
|
@@ -13,7 +13,7 @@ import type { IUIButtonState, IUIElement, IUIGroup, IViewBased } from 'jodit/typ
|
|
|
13
13
|
import type { IDictionary } from 'jodit/types';
|
|
14
14
|
import { UIElement } from '../element';
|
|
15
15
|
export declare class UIGroup<T extends IViewBased = IViewBased> extends UIElement<T> implements IUIGroup {
|
|
16
|
-
readonly options?: IDictionary<any> | undefined;
|
|
16
|
+
readonly options?: IDictionary<any, string> | undefined;
|
|
17
17
|
/** @override */
|
|
18
18
|
className(): string;
|
|
19
19
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class UIGroup<T extends IViewBased = IViewBased> extends UIElemen
|
|
|
51
51
|
/**
|
|
52
52
|
* @param elements - Items of group
|
|
53
53
|
*/
|
|
54
|
-
constructor(jodit: T, elements?: Array<IUIElement | void | null | false>, options?: IDictionary<any> | undefined);
|
|
54
|
+
constructor(jodit: T, elements?: Array<IUIElement | void | null | false>, options?: IDictionary<any, string> | undefined);
|
|
55
55
|
/** @override */
|
|
56
56
|
destruct(): any;
|
|
57
57
|
}
|
package/types/jodit.d.ts
CHANGED
|
@@ -51,6 +51,12 @@ export declare class Jodit extends ViewWithToolbar implements IJodit {
|
|
|
51
51
|
* Factory for creating Jodit instance
|
|
52
52
|
*/
|
|
53
53
|
static make(element: HTMLElement | string, options?: object): Jodit;
|
|
54
|
+
/**
|
|
55
|
+
* Checks if the element has already been initialized when for Jodit
|
|
56
|
+
*/
|
|
57
|
+
static isJoditAssigned(element: HTMLElement): element is HTMLElement & {
|
|
58
|
+
component: Jodit;
|
|
59
|
+
};
|
|
54
60
|
/**
|
|
55
61
|
* Default settings
|
|
56
62
|
*/
|
|
@@ -11,5 +11,5 @@ export declare const getItem: (node: Nullable<EventTarget>, root: HTMLElement, t
|
|
|
11
11
|
export declare const elementToItem: (elm: HTMLElement, elementsMap: IDictionary<{
|
|
12
12
|
elm: HTMLElement;
|
|
13
13
|
item: IFileBrowserItem;
|
|
14
|
-
}>) => IFileBrowserItem | void;
|
|
14
|
+
}, string>) => IFileBrowserItem | void;
|
|
15
15
|
export declare function nativeListeners(this: IFileBrowser): void;
|
package/types/plugins/index.d.ts
CHANGED
|
@@ -51,5 +51,6 @@ export { sticky } from './sticky/sticky';
|
|
|
51
51
|
export { symbols } from './symbols/symbols';
|
|
52
52
|
export * from './table';
|
|
53
53
|
export { tooltip } from './tooltip/tooltip';
|
|
54
|
+
export { tab } from './keyboard/tab/tab';
|
|
54
55
|
export * from './print';
|
|
55
56
|
export { xpath } from './xpath/xpath';
|
|
@@ -0,0 +1,14 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugins/keyboard/tab
|
|
8
|
+
*/
|
|
9
|
+
import type { IJodit } from 'jodit/types';
|
|
10
|
+
/**
|
|
11
|
+
* Checks if the cursor is at the beginning of the LI element when tabbed.
|
|
12
|
+
* If so then add an internal list
|
|
13
|
+
*/
|
|
14
|
+
export declare function onTabInsideLi(jodit: IJodit): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
declare module 'jodit/config' {
|
|
7
|
+
interface Config {
|
|
8
|
+
tab: {
|
|
9
|
+
/**
|
|
10
|
+
* Pressing Tab inside LI will add an internal list
|
|
11
|
+
*/
|
|
12
|
+
tabInsideLiInsertNewList: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugins/keyboard/tab
|
|
8
|
+
*/
|
|
9
|
+
import type { IJodit } from 'jodit/types';
|
|
10
|
+
import { Plugin } from 'jodit/core/plugin';
|
|
11
|
+
import './config';
|
|
12
|
+
export declare class tab extends Plugin {
|
|
13
|
+
protected afterInit(jodit: IJodit): void;
|
|
14
|
+
protected onTab(event: KeyboardEvent): false | void;
|
|
15
|
+
protected beforeDestruct(jodit: IJodit): void;
|
|
16
|
+
}
|