jodit 4.20.0 → 4.20.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/CHANGELOG.md +20 -0
- package/es2015/jodit.css +68 -9
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +11 -11
- package/es2015/jodit.js +238 -54
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +8 -8
- package/es2015/plugins/debug/debug.css +1 -1
- 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.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +11 -11
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +8 -8
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +68 -9
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +12 -12
- package/es2021/jodit.js +234 -54
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +8 -8
- package/es2021/plugins/debug/debug.css +1 -1
- 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 +68 -9
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +234 -54
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +19 -19
- package/es2021.en/plugins/debug/debug.css +1 -1
- 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 +45 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +285 -56
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- 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/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/ui/form/inputs/input/input.js +2 -0
- package/esm/modules/toolbar/button/button.d.ts +10 -0
- package/esm/modules/toolbar/button/button.js +19 -2
- package/esm/modules/toolbar/button/select/select.d.ts +6 -0
- package/esm/modules/toolbar/button/select/select.js +18 -0
- package/esm/modules/widget/color-picker/color-picker.js +76 -18
- package/esm/plugins/anchor/anchor.d.ts +11 -0
- package/esm/plugins/anchor/anchor.js +84 -8
- package/esm/plugins/fullsize/config.js +2 -0
- package/esm/plugins/hr/hr.js +0 -1
- package/esm/plugins/line-height/config.js +0 -1
- package/esm/plugins/link/template.js +3 -1
- package/esm/plugins/resizer/resizer.d.ts +6 -0
- package/esm/plugins/resizer/resizer.js +11 -0
- package/esm/types/toolbar.d.ts +2 -0
- package/package.json +1 -1
- package/types/modules/toolbar/button/button.d.ts +10 -0
- package/types/modules/toolbar/button/select/select.d.ts +6 -0
- package/types/plugins/anchor/anchor.d.ts +11 -0
- package/types/plugins/resizer/resizer.d.ts +6 -0
- package/types/types/toolbar.d.ts +2 -0
|
@@ -10,5 +10,11 @@ import type { IViewBased } from "../../../../types/index";
|
|
|
10
10
|
import { ToolbarButton } from "../button";
|
|
11
11
|
export declare class ToolbarSelect<T extends IViewBased = IViewBased> extends ToolbarButton<T> {
|
|
12
12
|
className(): string;
|
|
13
|
+
protected get isToggle(): boolean;
|
|
13
14
|
update(): void;
|
|
15
|
+
/**
|
|
16
|
+
* The button shows only the value, so its name says which control it
|
|
17
|
+
* is too: "Font size, 16px"
|
|
18
|
+
*/
|
|
19
|
+
protected updateAriaLabel(): void;
|
|
14
20
|
}
|
|
@@ -35,6 +35,11 @@ export declare class anchor extends Plugin {
|
|
|
35
35
|
protected onAfterGetValueFromEditor(data: {
|
|
36
36
|
value: string;
|
|
37
37
|
}): void;
|
|
38
|
+
/**
|
|
39
|
+
* A pasted or dropped copy of an anchor the document already has gets the
|
|
40
|
+
* next free name, as `fees-2`, and the links that came with it follow it
|
|
41
|
+
*/
|
|
42
|
+
protected onBeforePasteInsert(html: unknown): string | void;
|
|
38
43
|
/**
|
|
39
44
|
* The form that names a new anchor, or renames or removes `target`
|
|
40
45
|
*/
|
|
@@ -62,6 +67,12 @@ export declare class anchor extends Plugin {
|
|
|
62
67
|
* something else by the old one, as they do after a copy is pasted
|
|
63
68
|
*/
|
|
64
69
|
private __rename;
|
|
70
|
+
/**
|
|
71
|
+
* Gives each anchor in `root` whose name the document already has the
|
|
72
|
+
* next free one, avoiding the names in `root` too, and points the links
|
|
73
|
+
* in `root` to it at the new name. Whether any was renamed
|
|
74
|
+
*/
|
|
75
|
+
private __renameCopies;
|
|
65
76
|
/** @override */
|
|
66
77
|
protected beforeDestruct(jodit: IJodit): void;
|
|
67
78
|
}
|
|
@@ -30,6 +30,12 @@ export declare class resizer extends Plugin {
|
|
|
30
30
|
private sizeViewer;
|
|
31
31
|
/** @override */
|
|
32
32
|
protected afterInit(editor: IJodit): void;
|
|
33
|
+
/**
|
|
34
|
+
* A tap that selects an image sends no `click` (iPadOS), so `touchend`
|
|
35
|
+
* stands in for it. A tick later, after `onClickOutside` has had the same
|
|
36
|
+
* `touchend`, as `click` comes after `mouseup`
|
|
37
|
+
*/
|
|
38
|
+
protected onEditorTouchEnd(e: TouchEvent): void;
|
|
33
39
|
/**
|
|
34
40
|
* Click in the editor area
|
|
35
41
|
*/
|
package/types/types/toolbar.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ interface IControlType<T extends IViewBased = IJodit | IViewBased | IFileBrowser
|
|
|
25
25
|
/**
|
|
26
26
|
* You can use it function for control - active/not active button
|
|
27
27
|
*
|
|
28
|
+
* A button with `isActive`, `tags` or `css` is a toggle, with `aria-pressed`
|
|
29
|
+
*
|
|
28
30
|
* @see copyformat plugin
|
|
29
31
|
* @example
|
|
30
32
|
* ```javascript
|