jodit 4.1.14 → 4.2.5
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 +22 -5
- package/es2015/jodit.css +82 -31
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +1364 -560
- package/es2015/jodit.min.css +1 -1
- 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 +82 -31
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +1350 -560
- package/es2018/jodit.min.css +1 -1
- 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 +82 -31
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +1346 -560
- package/es2021/jodit.min.css +1 -1
- 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 +82 -31
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +1346 -560
- package/es2021.en/jodit.min.css +1 -1
- 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 +131 -35
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1388 -496
- package/es5/jodit.min.css +3 -3
- 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/decorators/cache/cache.d.ts +2 -1
- package/esm/core/decorators/cache/cache.js +7 -0
- package/esm/core/helpers/size/position.js +2 -2
- package/esm/core/helpers/utils/selector.d.ts +3 -1
- package/esm/core/helpers/utils/selector.js +3 -3
- package/esm/core/ui/button/tooltip/tooltip.js +3 -4
- package/esm/core/ui/popup/popup.js +1 -1
- package/esm/modules/dialog/dialog.js +1 -0
- package/esm/modules/file-browser/file-browser.js +8 -1
- package/esm/modules/image-editor/templates/form.js +6 -5
- package/esm/modules/toolbar/button/button.d.ts +1 -1
- package/esm/modules/widget/tabs/tabs.d.ts +4 -4
- package/esm/modules/widget/tabs/tabs.js +9 -7
- package/esm/plugins/ai-assistant/ai-assistant.d.ts +1 -1
- package/esm/plugins/ai-assistant/ai-assistant.js +6 -6
- package/esm/plugins/image-properties/config.d.ts +5 -83
- package/esm/plugins/image-properties/config.js +0 -3
- package/esm/plugins/image-properties/image-properties.d.ts +22 -32
- package/esm/plugins/image-properties/image-properties.js +129 -402
- package/{types/plugins/image-properties/templates/form.d.ts → esm/plugins/image-properties/readers/align.d.ts} +3 -5
- package/esm/plugins/image-properties/readers/align.js +24 -0
- package/esm/plugins/image-properties/readers/index.d.ts +12 -0
- package/esm/plugins/image-properties/readers/index.js +38 -0
- package/esm/plugins/image-properties/readers/link.d.ts +9 -0
- package/esm/plugins/image-properties/readers/link.js +19 -0
- package/esm/plugins/image-properties/readers/margin.d.ts +8 -0
- package/esm/plugins/image-properties/readers/margin.js +28 -0
- package/esm/plugins/image-properties/readers/size.d.ts +8 -0
- package/esm/plugins/image-properties/readers/size.js +36 -0
- package/esm/plugins/image-properties/ui/ui-image-form.d.ts +29 -0
- package/esm/plugins/image-properties/ui/ui-image-form.js +171 -0
- package/esm/plugins/image-properties/ui/ui-image-main-tab.d.ts +36 -0
- package/esm/plugins/image-properties/ui/ui-image-main-tab.js +179 -0
- package/esm/plugins/image-properties/ui/ui-image-position-tab.d.ts +36 -0
- package/esm/plugins/image-properties/ui/ui-image-position-tab.js +261 -0
- package/esm/plugins/image-properties/{templates/main-tab.d.ts → utils/open-image-editor.d.ts} +5 -3
- package/esm/plugins/image-properties/utils/open-image-editor.js +52 -0
- package/esm/plugins/image-properties/utils/open-image-popup.d.ts +9 -0
- package/esm/plugins/image-properties/utils/open-image-popup.js +34 -0
- package/esm/plugins/image-properties/utils/utils.d.ts +9 -0
- package/esm/plugins/image-properties/utils/utils.js +21 -0
- package/esm/plugins/image-properties/writers/index.d.ts +12 -0
- package/esm/plugins/image-properties/writers/index.js +53 -0
- package/esm/plugins/image-properties/{templates/form.d.ts → writers/link.d.ts} +2 -4
- package/esm/plugins/image-properties/writers/link.js +24 -0
- package/esm/plugins/image-properties/writers/margin.d.ts +8 -0
- package/esm/plugins/image-properties/writers/margin.js +33 -0
- package/esm/plugins/image-properties/writers/size.d.ts +7 -0
- package/esm/plugins/image-properties/writers/size.js +28 -0
- package/esm/plugins/select/config.d.ts +7 -0
- package/esm/plugins/select/config.js +2 -1
- package/esm/plugins/select/select.d.ts +7 -3
- package/esm/plugins/select/select.js +21 -4
- package/esm/types/ui.d.ts +1 -1
- package/package.json +1 -1
- package/types/core/decorators/cache/cache.d.ts +2 -1
- package/types/core/helpers/utils/selector.d.ts +3 -1
- package/types/modules/toolbar/button/button.d.ts +1 -1
- package/types/modules/widget/tabs/tabs.d.ts +4 -4
- package/types/plugins/ai-assistant/ai-assistant.d.ts +1 -1
- package/types/plugins/image-properties/config.d.ts +5 -83
- package/types/plugins/image-properties/image-properties.d.ts +22 -32
- package/types/plugins/image-properties/{templates/main-tab.d.ts → readers/align.d.ts} +3 -5
- package/types/plugins/image-properties/readers/index.d.ts +12 -0
- package/types/plugins/image-properties/readers/link.d.ts +9 -0
- package/types/plugins/image-properties/readers/margin.d.ts +8 -0
- package/types/plugins/image-properties/readers/size.d.ts +8 -0
- package/types/plugins/image-properties/ui/ui-image-form.d.ts +29 -0
- package/types/plugins/image-properties/ui/ui-image-main-tab.d.ts +36 -0
- package/types/plugins/image-properties/ui/ui-image-position-tab.d.ts +36 -0
- package/types/plugins/image-properties/utils/open-image-editor.d.ts +12 -0
- package/types/plugins/image-properties/utils/open-image-popup.d.ts +9 -0
- package/types/plugins/image-properties/utils/utils.d.ts +9 -0
- package/types/plugins/image-properties/writers/index.d.ts +12 -0
- package/{esm/plugins/image-properties/templates/position-tab.d.ts → types/plugins/image-properties/writers/link.d.ts} +2 -4
- package/types/plugins/image-properties/writers/margin.d.ts +8 -0
- package/types/plugins/image-properties/writers/size.d.ts +7 -0
- package/types/plugins/select/config.d.ts +7 -0
- package/types/plugins/select/select.d.ts +7 -3
- package/types/types/ui.d.ts +1 -1
- package/esm/plugins/image-properties/templates/form.js +0 -26
- package/esm/plugins/image-properties/templates/main-tab.js +0 -47
- package/esm/plugins/image-properties/templates/position-tab.js +0 -66
- package/types/plugins/image-properties/templates/position-tab.d.ts +0 -10
|
@@ -1,47 +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-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
7
|
-
export function mainTab(editor) {
|
|
8
|
-
const opt = editor.o, i18n = editor.i18n.bind(editor), gi = Icon.get.bind(Icon), hasFbUrl = opt.filebrowser.ajax.url || opt.uploader.url, hasEditor = opt.image.useImageEditor;
|
|
9
|
-
return editor.c.fromHTML(`<div style="${!opt.image.editSrc ? 'display:none' : ''}" class="jodit-form__group">
|
|
10
|
-
<label>${i18n('Src')}</label>
|
|
11
|
-
<div class="jodit-input_group">
|
|
12
|
-
<input data-ref="imageSrc" class="jodit-input" type="text"/>
|
|
13
|
-
<div
|
|
14
|
-
class="jodit-input_group-buttons"
|
|
15
|
-
style="${hasFbUrl ? '' : 'display: none'}"
|
|
16
|
-
>
|
|
17
|
-
<a
|
|
18
|
-
data-ref="changeImage"
|
|
19
|
-
class="jodit-button"
|
|
20
|
-
>${gi('image')}</a>
|
|
21
|
-
<a
|
|
22
|
-
data-ref="editImage"
|
|
23
|
-
class="jodit-button"
|
|
24
|
-
style="${hasEditor ? '' : 'display: none'}"
|
|
25
|
-
>${gi('crop')}</a>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div style="${!opt.image.editTitle ? 'display:none' : ''}" class="jodit-form__group">
|
|
30
|
-
<label>${i18n('Title')}</label>
|
|
31
|
-
<input data-ref="imageTitle" type="text" class="jodit-input"/>
|
|
32
|
-
</div>
|
|
33
|
-
<div style="${!opt.image.editAlt ? 'display:none' : ''}" class="jodit-form__group">
|
|
34
|
-
<label>${i18n('Alternative')}</label>
|
|
35
|
-
<input data-ref="imageAlt" type="text" class="jodit-input"/>
|
|
36
|
-
</div>
|
|
37
|
-
<div style="${!opt.image.editLink ? 'display:none' : ''}" class="jodit-form__group">
|
|
38
|
-
<label>${i18n('Link')}</label>
|
|
39
|
-
<input data-ref="imageLink" type="text" class="jodit-input"/>
|
|
40
|
-
</div>
|
|
41
|
-
<div style="${!opt.image.editLink ? 'display:none' : ''}" class="jodit-form__group">
|
|
42
|
-
<label class="jodit_vertical_middle">
|
|
43
|
-
<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>
|
|
44
|
-
<span>${i18n('Open link in new tab')}</span>
|
|
45
|
-
</label>
|
|
46
|
-
</div>`);
|
|
47
|
-
}
|
|
@@ -1,66 +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-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
7
|
-
export function positionTab(editor) {
|
|
8
|
-
const opt = editor.o, i18n = editor.i18n.bind(editor), gi = Icon.get.bind(Icon);
|
|
9
|
-
const classInput = [];
|
|
10
|
-
if (opt.image.availableClasses.length > 0) {
|
|
11
|
-
classInput.push('<select data-ref="classes" class="jodit-input jodit-select">');
|
|
12
|
-
opt.image.availableClasses.forEach(item => {
|
|
13
|
-
if (typeof item === 'string') {
|
|
14
|
-
classInput.push(`<option value="${item}">${item}</option>`);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
classInput.push(`<option value="${item[0]}">${item[1]}</option>`);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
classInput.push('</select>');
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
classInput.push('<input data-ref="classes" type="text" class="jodit-input"/>');
|
|
24
|
-
}
|
|
25
|
-
return editor.c.fromHTML(`<div style="${!opt.image.editMargins ? 'display:none' : ''}" class="jodit-form__group">
|
|
26
|
-
<label>${i18n('Margins')}</label>
|
|
27
|
-
<div class="jodit-grid jodit_vertical_middle">
|
|
28
|
-
<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${i18n('top')}"/>
|
|
29
|
-
<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${gi('lock')}</a>
|
|
30
|
-
<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${i18n('right')}"/>
|
|
31
|
-
<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${i18n('bottom')}"/>
|
|
32
|
-
<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${i18n('left')}"/>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<div
|
|
36
|
-
style="${!opt.image.editAlign ? 'display:none' : ''}"
|
|
37
|
-
class="jodit-form__group"
|
|
38
|
-
>
|
|
39
|
-
<label>${i18n('Align')}</label>
|
|
40
|
-
<select data-ref="align" class="jodit-select">
|
|
41
|
-
<option value="">${i18n('--Not Set--')}</option>
|
|
42
|
-
<option value="left">${i18n('Left')}</option>
|
|
43
|
-
<option value="center">${i18n('Center')}</option>
|
|
44
|
-
<option value="right">${i18n('Right')}</option>
|
|
45
|
-
</select>
|
|
46
|
-
</div>
|
|
47
|
-
<div style="${!opt.image.editStyle ? 'display:none' : ''}" class="jodit-form__group">
|
|
48
|
-
<label>${i18n('Styles')}</label>
|
|
49
|
-
<input data-ref="style" type="text" class="jodit-input"/>
|
|
50
|
-
</div>
|
|
51
|
-
<div style="${!opt.image.editClass ? 'display:none' : ''}" class="jodit-form__group">
|
|
52
|
-
<label>${i18n('Classes')}</label>
|
|
53
|
-
${classInput.join('')}
|
|
54
|
-
</div>
|
|
55
|
-
<div style="${!opt.image.editId ? 'display:none' : ''}" class="jodit-form__group">
|
|
56
|
-
<label>Id</label>
|
|
57
|
-
<input data-ref="id" type="text" class="jodit-input"/>
|
|
58
|
-
</div>
|
|
59
|
-
<div
|
|
60
|
-
style="${!opt.image.editBorderRadius ? 'display:none' : ''}"
|
|
61
|
-
class="jodit-form__group"
|
|
62
|
-
>
|
|
63
|
-
<label>${i18n('Border radius')}</label>
|
|
64
|
-
<input data-ref="borderRadius" type="number" class="jodit-input"/>
|
|
65
|
-
</div>`);
|
|
66
|
-
}
|
|
@@ -1,10 +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-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module plugins/image-properties
|
|
8
|
-
*/
|
|
9
|
-
import type { IJodit } from "jodit/esm/types";
|
|
10
|
-
export declare function positionTab(editor: IJodit): HTMLElement;
|