jodit 4.19.14 → 4.20.1
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 +30 -0
- package/es2015/jodit.css +76 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +1464 -599
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +12 -12
- 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 +12 -12
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +12 -12
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +76 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +17 -17
- package/es2021/jodit.js +1445 -596
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +17 -17
- 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 +76 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +1419 -570
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +17 -17
- 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 +96 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1707 -706
- 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/config.d.ts +10 -3
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/anchor.d.ts +22 -0
- package/esm/core/helpers/utils/anchor.js +29 -0
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/ui/form/inputs/input/input.js +2 -0
- package/esm/core/ui/popup/popup.d.ts +5 -0
- package/esm/core/ui/popup/popup.js +5 -0
- package/esm/jodit.js +11 -14
- package/esm/langs/ar.d.ts +5 -0
- package/esm/langs/ar.js +5 -0
- package/esm/langs/az.d.ts +5 -0
- package/esm/langs/az.js +5 -0
- package/esm/langs/cs_cz.d.ts +5 -0
- package/esm/langs/cs_cz.js +6 -1
- package/esm/langs/de.d.ts +5 -0
- package/esm/langs/de.js +6 -0
- package/esm/langs/es.d.ts +5 -0
- package/esm/langs/es.js +6 -1
- package/esm/langs/fa.d.ts +5 -0
- package/esm/langs/fa.js +6 -1
- package/esm/langs/fi.d.ts +5 -0
- package/esm/langs/fi.js +5 -0
- package/esm/langs/fr.d.ts +5 -0
- package/esm/langs/fr.js +5 -0
- package/esm/langs/he.d.ts +5 -0
- package/esm/langs/he.js +6 -1
- package/esm/langs/hu.d.ts +5 -0
- package/esm/langs/hu.js +5 -0
- package/esm/langs/id.d.ts +5 -0
- package/esm/langs/id.js +6 -1
- package/esm/langs/it.d.ts +5 -0
- package/esm/langs/it.js +6 -1
- package/esm/langs/ja.d.ts +5 -0
- package/esm/langs/ja.js +6 -1
- package/esm/langs/ko.d.ts +5 -0
- package/esm/langs/ko.js +6 -1
- package/esm/langs/mn.d.ts +5 -0
- package/esm/langs/mn.js +6 -1
- package/esm/langs/nl.d.ts +5 -0
- package/esm/langs/nl.js +5 -0
- package/esm/langs/no.d.ts +5 -0
- package/esm/langs/no.js +5 -0
- package/esm/langs/pl.d.ts +5 -0
- package/esm/langs/pl.js +5 -0
- package/esm/langs/pt_br.d.ts +5 -0
- package/esm/langs/pt_br.js +6 -1
- package/esm/langs/ru.d.ts +5 -0
- package/esm/langs/ru.js +6 -1
- package/esm/langs/sk.d.ts +5 -0
- package/esm/langs/sk.js +5 -0
- package/esm/langs/sv.d.ts +5 -0
- package/esm/langs/sv.js +5 -0
- package/esm/langs/tr.d.ts +5 -0
- package/esm/langs/tr.js +6 -1
- package/esm/langs/ua.d.ts +5 -0
- package/esm/langs/ua.js +6 -1
- package/esm/langs/zh_cn.d.ts +5 -0
- package/esm/langs/zh_cn.js +6 -1
- package/esm/langs/zh_tw.d.ts +5 -0
- package/esm/langs/zh_tw.js +5 -0
- package/esm/modules/file-browser/file-browser.d.ts +3 -4
- package/esm/modules/file-browser/file-browser.js +12 -12
- package/esm/modules/toolbar/button/button.d.ts +7 -0
- package/esm/modules/toolbar/button/button.js +32 -4
- package/esm/modules/uploader/config.js +18 -18
- package/esm/modules/uploader/helpers/index.d.ts +1 -0
- package/esm/modules/uploader/helpers/index.js +1 -0
- package/esm/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
- package/esm/modules/uploader/helpers/normalize-uploader-data.js +54 -0
- package/esm/modules/uploader/helpers/send-files.js +11 -6
- package/esm/modules/uploader/uploader.d.ts +4 -5
- package/esm/modules/uploader/uploader.js +12 -8
- package/esm/plugins/all.d.ts +1 -0
- package/esm/plugins/all.js +1 -0
- package/esm/plugins/anchor/anchor.d.ts +67 -0
- package/esm/plugins/anchor/anchor.js +302 -0
- package/esm/plugins/anchor/config.d.ts +6 -0
- package/esm/plugins/anchor/config.js +13 -0
- package/esm/plugins/file/file.d.ts +1 -1
- package/esm/plugins/file/file.js +6 -6
- package/esm/plugins/image/image.js +2 -2
- package/esm/plugins/image-caption/image-caption.js +1 -2
- package/esm/plugins/image-properties/utils/open-image-popup.js +7 -6
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.d.ts +8 -2
- package/esm/plugins/inline-popup/config/config.js +1 -0
- package/esm/plugins/inline-popup/config/items/cells.js +0 -10
- package/esm/plugins/inline-popup/config/items/img.js +1 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +9 -12
- package/esm/plugins/inline-popup/inline-popup.js +53 -77
- package/esm/plugins/link/link.js +150 -3
- 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/plugins/select/select.d.ts +31 -0
- package/esm/plugins/select/select.js +235 -2
- package/esm/plugins/select-cells/select-cells.d.ts +11 -0
- package/esm/plugins/select-cells/select-cells.js +48 -17
- package/esm/plugins/video/config.d.ts +1 -1
- package/esm/plugins/video/config.js +4 -3
- package/esm/plugins/video-properties/video-properties.js +7 -6
- package/esm/styles/icons/anchor.svg.js +1 -0
- package/esm/styles/icons/index.d.ts +1 -1
- package/esm/styles/icons/index.js +2 -1
- package/esm/types/file-browser.d.ts +8 -1
- package/esm/types/popup.d.ts +1 -0
- package/esm/types/uploader.d.ts +39 -1
- package/package.json +1 -1
- package/types/config.d.ts +10 -3
- package/types/core/helpers/utils/anchor.d.ts +22 -0
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/ui/popup/popup.d.ts +5 -0
- package/types/langs/ar.d.ts +5 -0
- package/types/langs/az.d.ts +5 -0
- package/types/langs/cs_cz.d.ts +5 -0
- package/types/langs/de.d.ts +5 -0
- package/types/langs/es.d.ts +5 -0
- package/types/langs/fa.d.ts +5 -0
- package/types/langs/fi.d.ts +5 -0
- package/types/langs/fr.d.ts +5 -0
- package/types/langs/he.d.ts +5 -0
- package/types/langs/hu.d.ts +5 -0
- package/types/langs/id.d.ts +5 -0
- package/types/langs/it.d.ts +5 -0
- package/types/langs/ja.d.ts +5 -0
- package/types/langs/ko.d.ts +5 -0
- package/types/langs/mn.d.ts +5 -0
- package/types/langs/nl.d.ts +5 -0
- package/types/langs/no.d.ts +5 -0
- package/types/langs/pl.d.ts +5 -0
- package/types/langs/pt_br.d.ts +5 -0
- package/types/langs/ru.d.ts +5 -0
- package/types/langs/sk.d.ts +5 -0
- package/types/langs/sv.d.ts +5 -0
- package/types/langs/tr.d.ts +5 -0
- package/types/langs/ua.d.ts +5 -0
- package/types/langs/zh_cn.d.ts +5 -0
- package/types/langs/zh_tw.d.ts +5 -0
- package/types/modules/file-browser/file-browser.d.ts +3 -4
- package/types/modules/toolbar/button/button.d.ts +7 -0
- package/types/modules/uploader/helpers/index.d.ts +1 -0
- package/types/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
- package/types/modules/uploader/uploader.d.ts +4 -5
- package/types/plugins/anchor/anchor.d.ts +67 -0
- package/types/plugins/anchor/config.d.ts +6 -0
- package/types/plugins/file/file.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/config/config.d.ts +8 -2
- package/types/plugins/inline-popup/inline-popup.d.ts +9 -12
- package/types/plugins/resizer/resizer.d.ts +6 -0
- package/types/plugins/select/select.d.ts +31 -0
- package/types/plugins/select-cells/select-cells.d.ts +11 -0
- package/types/plugins/video/config.d.ts +1 -1
- package/types/styles/icons/index.d.ts +1 -1
- package/types/types/file-browser.d.ts +8 -1
- package/types/types/popup.d.ts +1 -0
- package/types/types/uploader.d.ts +39 -1
package/esm/langs/it.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/it.js
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
'Buy full version': 'Acquista la versione completa',
|
|
19
19
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
20
20
|
'Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.',
|
|
21
|
-
Anchor: '
|
|
21
|
+
Anchor: 'Ancora',
|
|
22
22
|
'Open in new tab': 'Apri in una nuova scheda',
|
|
23
23
|
'Open in fullsize': "Apri l'editor a schermo intero",
|
|
24
24
|
'Clear Formatting': 'Pulisci Formattazione',
|
|
@@ -38,6 +38,11 @@ export default {
|
|
|
38
38
|
'Insert file': 'Inserisci un file',
|
|
39
39
|
'Insert youtube/vimeo video': 'Inserisci video Youtube/Vimeo',
|
|
40
40
|
'Insert link': 'Inserisci link',
|
|
41
|
+
'Insert anchor': 'Inserisci ancora',
|
|
42
|
+
'Link to an anchor': "Collega a un'ancora",
|
|
43
|
+
'On this page': 'In questa pagina',
|
|
44
|
+
'The name cannot contain spaces': 'Il nome non può contenere spazi',
|
|
45
|
+
'This name is already in use': 'Questo nome è già in uso',
|
|
41
46
|
'Font size': 'Dimensione carattere',
|
|
42
47
|
'Font family': 'Tipo di font',
|
|
43
48
|
'Insert format block': 'Inserisci blocco',
|
package/esm/langs/ja.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/ja.js
CHANGED
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'Buy full version': 'フルバージョンを購入',
|
|
18
18
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
19
19
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.',
|
|
20
|
-
Anchor: '
|
|
20
|
+
Anchor: 'アンカー',
|
|
21
21
|
'Open in new tab': '新しいタブで開く',
|
|
22
22
|
'Open in fullsize': 'エディターのサイズ(フル/ノーマル)',
|
|
23
23
|
'Clear Formatting': '書式をクリア',
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': 'ファイルを挿入',
|
|
38
38
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 動画',
|
|
39
39
|
'Insert link': 'リンクを挿入',
|
|
40
|
+
'Insert anchor': 'アンカーを挿入',
|
|
41
|
+
'Link to an anchor': 'アンカーにリンク',
|
|
42
|
+
'On this page': 'このページ内',
|
|
43
|
+
'The name cannot contain spaces': '名前にスペースは使えません',
|
|
44
|
+
'This name is already in use': 'この名前はすでに使われています',
|
|
40
45
|
'Font size': 'フォントサイズ',
|
|
41
46
|
'Font family': 'フォント',
|
|
42
47
|
'Insert format block': 'テキストのスタイル',
|
package/esm/langs/ko.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ declare const _exports: {
|
|
|
27
27
|
'Insert file': string;
|
|
28
28
|
'Insert youtube/vimeo video': string;
|
|
29
29
|
'Insert link': string;
|
|
30
|
+
'Insert anchor': string;
|
|
31
|
+
'Link to an anchor': string;
|
|
32
|
+
'On this page': string;
|
|
33
|
+
'The name cannot contain spaces': string;
|
|
34
|
+
'This name is already in use': string;
|
|
30
35
|
'Font size': string;
|
|
31
36
|
'Font family': string;
|
|
32
37
|
'Insert format block': string;
|
package/esm/langs/ko.js
CHANGED
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
'Buy full version': '풀 버전 구입하기',
|
|
17
17
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
18
18
|
'© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.',
|
|
19
|
-
Anchor: '
|
|
19
|
+
Anchor: '앵커',
|
|
20
20
|
'Open in new tab': '새 탭에서 열기',
|
|
21
21
|
'Open in fullsize': '전체 크기로 보기',
|
|
22
22
|
'Clear Formatting': '서식 지우기',
|
|
@@ -36,6 +36,11 @@ export default {
|
|
|
36
36
|
'Insert file': '파일 넣기',
|
|
37
37
|
'Insert youtube/vimeo video': 'Youtube/Vimeo 동영상',
|
|
38
38
|
'Insert link': '링크 넣기',
|
|
39
|
+
'Insert anchor': '앵커 넣기',
|
|
40
|
+
'Link to an anchor': '앵커에 연결',
|
|
41
|
+
'On this page': '이 페이지에서',
|
|
42
|
+
'The name cannot contain spaces': '이름에 공백을 넣을 수 없습니다',
|
|
43
|
+
'This name is already in use': '이미 사용 중인 이름입니다',
|
|
39
44
|
'Font size': '글꼴 크기',
|
|
40
45
|
'Font family': '글꼴',
|
|
41
46
|
'Insert format block': '블록 요소 넣기',
|
package/esm/langs/mn.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/mn.js
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
'Buy full version': 'Бүрэн хувилбар худалдан авах',
|
|
19
19
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
20
20
|
'Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.',
|
|
21
|
-
Anchor: '
|
|
21
|
+
Anchor: 'Зангуу',
|
|
22
22
|
'Open in new tab': 'Шинэ табаар нээх',
|
|
23
23
|
'Open in fullsize': 'Бүтэн дэлгэцээр нээх',
|
|
24
24
|
'Clear Formatting': 'Форматыг арилгах',
|
|
@@ -39,6 +39,11 @@ export default {
|
|
|
39
39
|
'Insert file': 'Файл нэмэх',
|
|
40
40
|
'Insert youtube/vimeo video': 'Youtube/Vimeo видео нэмэх',
|
|
41
41
|
'Insert link': 'Холбоос нэмэх',
|
|
42
|
+
'Insert anchor': 'Зангуу нэмэх',
|
|
43
|
+
'Link to an anchor': 'Зангуу руу холбох',
|
|
44
|
+
'On this page': 'Энэ хуудсанд',
|
|
45
|
+
'The name cannot contain spaces': 'Нэрэнд хоосон зай байж болохгүй',
|
|
46
|
+
'This name is already in use': 'Энэ нэр аль хэдийн ашиглагдаж байна',
|
|
42
47
|
'Font size': 'Фонтын хэмжээ',
|
|
43
48
|
'Font family': 'Фонтын бүл',
|
|
44
49
|
'Insert format block': 'Блок нэмэх',
|
package/esm/langs/nl.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ declare const _exports: {
|
|
|
29
29
|
'Insert file': string;
|
|
30
30
|
'Insert youtube/vimeo video': string;
|
|
31
31
|
'Insert link': string;
|
|
32
|
+
'Insert anchor': string;
|
|
33
|
+
'Link to an anchor': string;
|
|
34
|
+
'On this page': string;
|
|
35
|
+
'The name cannot contain spaces': string;
|
|
36
|
+
'This name is already in use': string;
|
|
32
37
|
'Font size': string;
|
|
33
38
|
'Font family': string;
|
|
34
39
|
'Insert format block': string;
|
package/esm/langs/nl.js
CHANGED
|
@@ -39,6 +39,11 @@ export default {
|
|
|
39
39
|
'Insert file': 'Bestand invoegen',
|
|
40
40
|
'Insert youtube/vimeo video': 'Youtube/Vimeo video invoegen',
|
|
41
41
|
'Insert link': 'Link toevoegen',
|
|
42
|
+
'Insert anchor': 'Anker toevoegen',
|
|
43
|
+
'Link to an anchor': 'Naar een anker linken',
|
|
44
|
+
'On this page': 'Op deze pagina',
|
|
45
|
+
'The name cannot contain spaces': 'De naam mag geen spaties bevatten',
|
|
46
|
+
'This name is already in use': 'Deze naam is al in gebruik',
|
|
42
47
|
'Font size': 'Tekstgrootte',
|
|
43
48
|
'Font family': 'Lettertype',
|
|
44
49
|
'Insert format block': 'Format blok invoegen',
|
package/esm/langs/no.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ declare const _exports: {
|
|
|
27
27
|
'Insert file': string;
|
|
28
28
|
'Insert youtube/vimeo video': string;
|
|
29
29
|
'Insert link': string;
|
|
30
|
+
'Insert anchor': string;
|
|
31
|
+
'Link to an anchor': string;
|
|
32
|
+
'On this page': string;
|
|
33
|
+
'The name cannot contain spaces': string;
|
|
34
|
+
'This name is already in use': string;
|
|
30
35
|
'Font size': string;
|
|
31
36
|
'Font family': string;
|
|
32
37
|
'Insert format block': string;
|
package/esm/langs/no.js
CHANGED
|
@@ -36,6 +36,11 @@ export default {
|
|
|
36
36
|
'Insert file': 'Sett inn fil',
|
|
37
37
|
'Insert youtube/vimeo video': 'Sett inn YouTube/Vimeo-video',
|
|
38
38
|
'Insert link': 'Sett inn lenke',
|
|
39
|
+
'Insert anchor': 'Sett inn anker',
|
|
40
|
+
'Link to an anchor': 'Lenke til et anker',
|
|
41
|
+
'On this page': 'På denne siden',
|
|
42
|
+
'The name cannot contain spaces': 'Navnet kan ikke inneholde mellomrom',
|
|
43
|
+
'This name is already in use': 'Dette navnet er allerede i bruk',
|
|
39
44
|
'Font size': 'Skriftstørrelse',
|
|
40
45
|
'Font family': 'Skriftfamilie',
|
|
41
46
|
'Insert format block': 'Sett inn formateringsblokk',
|
package/esm/langs/pl.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/pl.js
CHANGED
|
@@ -39,6 +39,11 @@ export default {
|
|
|
39
39
|
'Insert file': 'Wstaw plik',
|
|
40
40
|
'Insert youtube/vimeo video': 'Wstaw film Youtube/vimeo',
|
|
41
41
|
'Insert link': 'Wstaw link',
|
|
42
|
+
'Insert anchor': 'Wstaw kotwicę',
|
|
43
|
+
'Link to an anchor': 'Link do kotwicy',
|
|
44
|
+
'On this page': 'Na tej stronie',
|
|
45
|
+
'The name cannot contain spaces': 'Nazwa nie może zawierać spacji',
|
|
46
|
+
'This name is already in use': 'Ta nazwa jest już używana',
|
|
42
47
|
'Font size': 'Rozmiar tekstu',
|
|
43
48
|
'Font family': 'Krój czcionki',
|
|
44
49
|
'Insert format block': 'Wstaw formatowanie',
|
package/esm/langs/pt_br.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/pt_br.js
CHANGED
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'Buy full version': 'Compre a versão completa',
|
|
18
18
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
19
19
|
'Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.',
|
|
20
|
-
Anchor: '
|
|
20
|
+
Anchor: 'Âncora',
|
|
21
21
|
'Open in new tab': 'Abrir em nova aba',
|
|
22
22
|
'Open in fullsize': 'Abrir editor em tela cheia',
|
|
23
23
|
'Clear Formatting': 'Limpar formatação',
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': 'Inserir arquivo',
|
|
38
38
|
'Insert youtube/vimeo video': 'Inserir vídeo do Youtube/vimeo',
|
|
39
39
|
'Insert link': 'Inserir link',
|
|
40
|
+
'Insert anchor': 'Inserir âncora',
|
|
41
|
+
'Link to an anchor': 'Vincular a uma âncora',
|
|
42
|
+
'On this page': 'Nesta página',
|
|
43
|
+
'The name cannot contain spaces': 'O nome não pode conter espaços',
|
|
44
|
+
'This name is already in use': 'Este nome já está em uso',
|
|
40
45
|
'Font size': 'Tamanho da letra',
|
|
41
46
|
'Font family': 'Fonte',
|
|
42
47
|
'Insert format block': 'Inserir bloco',
|
package/esm/langs/ru.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ declare const _exports: {
|
|
|
27
27
|
'Insert file': string;
|
|
28
28
|
'Insert youtube/vimeo video': string;
|
|
29
29
|
'Insert link': string;
|
|
30
|
+
'Insert anchor': string;
|
|
31
|
+
'Link to an anchor': string;
|
|
32
|
+
'On this page': string;
|
|
33
|
+
'The name cannot contain spaces': string;
|
|
34
|
+
'This name is already in use': string;
|
|
30
35
|
'Font size': string;
|
|
31
36
|
'Font family': string;
|
|
32
37
|
'Insert format block': string;
|
package/esm/langs/ru.js
CHANGED
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'Buy full version': 'Купить полную версию',
|
|
18
18
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
19
19
|
'Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.',
|
|
20
|
-
Anchor: '
|
|
20
|
+
Anchor: 'Якорь',
|
|
21
21
|
'Open in new tab': 'Открывать ссылку в новой вкладке',
|
|
22
22
|
'Open in fullsize': 'Открыть редактор в полном размере',
|
|
23
23
|
'Clear Formatting': 'Очистить форматирование',
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': 'Вставить файл',
|
|
38
38
|
'Insert youtube/vimeo video': 'Вставьте видео',
|
|
39
39
|
'Insert link': 'Вставить ссылку',
|
|
40
|
+
'Insert anchor': 'Вставить якорь',
|
|
41
|
+
'Link to an anchor': 'Ссылка на якорь',
|
|
42
|
+
'On this page': 'На этой странице',
|
|
43
|
+
'The name cannot contain spaces': 'Имя не может содержать пробелы',
|
|
44
|
+
'This name is already in use': 'Это имя уже используется',
|
|
40
45
|
'Font size': 'Размер шрифта',
|
|
41
46
|
'Font family': 'Шрифт',
|
|
42
47
|
'Insert format block': 'Вставить блочный элемент',
|
package/esm/langs/sk.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/sk.js
CHANGED
|
@@ -38,6 +38,11 @@ export default {
|
|
|
38
38
|
'Insert file': 'Vložiť súbor',
|
|
39
39
|
'Insert youtube/vimeo video': 'Vložiť video YouTube/Vimeo',
|
|
40
40
|
'Insert link': 'Vložiť odkaz',
|
|
41
|
+
'Insert anchor': 'Vložiť kotvu',
|
|
42
|
+
'Link to an anchor': 'Odkaz na kotvu',
|
|
43
|
+
'On this page': 'Na tejto stránke',
|
|
44
|
+
'The name cannot contain spaces': 'Názov nesmie obsahovať medzery',
|
|
45
|
+
'This name is already in use': 'Tento názov sa už používa',
|
|
41
46
|
'Font size': 'Veľkosť písma',
|
|
42
47
|
'Font family': 'Typ písma',
|
|
43
48
|
'Insert format block': 'Vložiť formátovaný blok',
|
package/esm/langs/sv.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ declare const _exports: {
|
|
|
27
27
|
'Insert file': string;
|
|
28
28
|
'Insert youtube/vimeo video': string;
|
|
29
29
|
'Insert link': string;
|
|
30
|
+
'Insert anchor': string;
|
|
31
|
+
'Link to an anchor': string;
|
|
32
|
+
'On this page': string;
|
|
33
|
+
'The name cannot contain spaces': string;
|
|
34
|
+
'This name is already in use': string;
|
|
30
35
|
'Font size': string;
|
|
31
36
|
'Font family': string;
|
|
32
37
|
'Insert format block': string;
|
package/esm/langs/sv.js
CHANGED
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': 'Infoga fil',
|
|
38
38
|
'Insert youtube/vimeo video': 'Infoga YouTube/Vimeo-video',
|
|
39
39
|
'Insert link': 'Infoga länk',
|
|
40
|
+
'Insert anchor': 'Infoga ankare',
|
|
41
|
+
'Link to an anchor': 'Länka till ett ankare',
|
|
42
|
+
'On this page': 'På den här sidan',
|
|
43
|
+
'The name cannot contain spaces': 'Namnet får inte innehålla mellanslag',
|
|
44
|
+
'This name is already in use': 'Det här namnet används redan',
|
|
40
45
|
'Font size': 'Teckenstorlek',
|
|
41
46
|
'Font family': 'Teckensnitt',
|
|
42
47
|
'Insert format block': 'Infoga formateringsblock',
|
package/esm/langs/tr.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/tr.js
CHANGED
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'Buy full version': 'Tam versiyonunu satın al',
|
|
18
18
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
19
19
|
'Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.',
|
|
20
|
-
Anchor: '
|
|
20
|
+
Anchor: 'Çapa',
|
|
21
21
|
'Open in new tab': 'Yeni sekmede aç',
|
|
22
22
|
'Open in fullsize': 'Editörü tam ekranda aç',
|
|
23
23
|
'Clear Formatting': 'Stili temizle',
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': 'Dosya Ekle',
|
|
38
38
|
'Insert youtube/vimeo video': 'Youtube/Vimeo Videosu Ekle',
|
|
39
39
|
'Insert link': 'Bağlantı Ekle',
|
|
40
|
+
'Insert anchor': 'Çapa Ekle',
|
|
41
|
+
'Link to an anchor': 'Çapaya bağlantı',
|
|
42
|
+
'On this page': 'Bu sayfada',
|
|
43
|
+
'The name cannot contain spaces': 'Ad boşluk içeremez',
|
|
44
|
+
'This name is already in use': 'Bu ad zaten kullanılıyor',
|
|
40
45
|
'Font size': 'Font Boyutu',
|
|
41
46
|
'Font family': 'Font Ailesi',
|
|
42
47
|
'Insert format block': 'Blok Ekle',
|
package/esm/langs/ua.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ declare const _exports: {
|
|
|
27
27
|
'Insert file': string;
|
|
28
28
|
'Insert youtube/vimeo video': string;
|
|
29
29
|
'Insert link': string;
|
|
30
|
+
'Insert anchor': string;
|
|
31
|
+
'Link to an anchor': string;
|
|
32
|
+
'On this page': string;
|
|
33
|
+
'The name cannot contain spaces': string;
|
|
34
|
+
'This name is already in use': string;
|
|
30
35
|
'Font size': string;
|
|
31
36
|
'Font family': string;
|
|
32
37
|
'Insert format block': string;
|
package/esm/langs/ua.js
CHANGED
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'Buy full version': 'Купити повну версію',
|
|
18
18
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
19
19
|
'Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.',
|
|
20
|
-
Anchor: '
|
|
20
|
+
Anchor: 'Якір',
|
|
21
21
|
'Open in new tab': 'Відкрити у новій вкладці',
|
|
22
22
|
'Open in fullsize': 'Відкрити редактор в повному розмірі',
|
|
23
23
|
'Clear Formatting': 'Очистити форматування',
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': 'Вставити файл',
|
|
38
38
|
'Insert youtube/vimeo video': 'Вставити відео',
|
|
39
39
|
'Insert link': 'Вставити посилання',
|
|
40
|
+
'Insert anchor': 'Вставити якір',
|
|
41
|
+
'Link to an anchor': 'Посилання на якір',
|
|
42
|
+
'On this page': 'На цій сторінці',
|
|
43
|
+
'The name cannot contain spaces': "Ім'я не може містити пробілів",
|
|
44
|
+
'This name is already in use': "Це ім'я вже використовується",
|
|
40
45
|
'Font size': 'Розмір шрифту',
|
|
41
46
|
'Font family': 'Шрифт',
|
|
42
47
|
'Insert format block': 'Вставити блочний елемент',
|
package/esm/langs/zh_cn.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ declare const _exports: {
|
|
|
29
29
|
'Insert file': string;
|
|
30
30
|
'Insert youtube/vimeo video': string;
|
|
31
31
|
'Insert link': string;
|
|
32
|
+
'Insert anchor': string;
|
|
33
|
+
'Link to an anchor': string;
|
|
34
|
+
'On this page': string;
|
|
35
|
+
'The name cannot contain spaces': string;
|
|
36
|
+
'This name is already in use': string;
|
|
32
37
|
'Font size': string;
|
|
33
38
|
'Font family': string;
|
|
34
39
|
'Insert format block': string;
|
package/esm/langs/zh_cn.js
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
'Buy full version': '购买完整版本',
|
|
19
19
|
'Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.':
|
|
20
20
|
'Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有',
|
|
21
|
-
Anchor: '
|
|
21
|
+
Anchor: '锚点',
|
|
22
22
|
'Open in new tab': '在新窗口打开',
|
|
23
23
|
'Open in fullsize': '全屏编辑',
|
|
24
24
|
'Clear Formatting': '清除样式',
|
|
@@ -38,6 +38,11 @@ export default {
|
|
|
38
38
|
'Insert file': '文件',
|
|
39
39
|
'Insert youtube/vimeo video': '视频',
|
|
40
40
|
'Insert link': '链接',
|
|
41
|
+
'Insert anchor': '插入锚点',
|
|
42
|
+
'Link to an anchor': '链接到锚点',
|
|
43
|
+
'On this page': '在本页',
|
|
44
|
+
'The name cannot contain spaces': '名称不能包含空格',
|
|
45
|
+
'This name is already in use': '此名称已被使用',
|
|
41
46
|
'Font size': '字号',
|
|
42
47
|
'Font family': '字体',
|
|
43
48
|
'Insert format block': '格式块',
|
package/esm/langs/zh_tw.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ declare const _exports: {
|
|
|
28
28
|
'Insert file': string;
|
|
29
29
|
'Insert youtube/vimeo video': string;
|
|
30
30
|
'Insert link': string;
|
|
31
|
+
'Insert anchor': string;
|
|
32
|
+
'Link to an anchor': string;
|
|
33
|
+
'On this page': string;
|
|
34
|
+
'The name cannot contain spaces': string;
|
|
35
|
+
'This name is already in use': string;
|
|
31
36
|
'Font size': string;
|
|
32
37
|
'Font family': string;
|
|
33
38
|
'Insert format block': string;
|
package/esm/langs/zh_tw.js
CHANGED
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
'Insert file': '檔案',
|
|
38
38
|
'Insert youtube/vimeo video': '插入 youtube/vimeo 影片',
|
|
39
39
|
'Insert link': '插入連結',
|
|
40
|
+
'Insert anchor': '插入錨點',
|
|
41
|
+
'Link to an anchor': '連結到錨點',
|
|
42
|
+
'On this page': '在本頁',
|
|
43
|
+
'The name cannot contain spaces': '名稱不能包含空格',
|
|
44
|
+
'This name is already in use': '此名稱已被使用',
|
|
40
45
|
'Font size': '文字大小',
|
|
41
46
|
'Font family': '字型',
|
|
42
47
|
'Insert format block': '格式化區塊',
|
|
@@ -57,10 +57,9 @@ export declare class FileBrowser extends ViewWithToolbar implements IFileBrowser
|
|
|
57
57
|
* ```javascript
|
|
58
58
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
59
59
|
* fb.open(function (data) {
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* }
|
|
60
|
+
* data.items.forEach(function (item) {
|
|
61
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
62
|
+
* });
|
|
64
63
|
* });
|
|
65
64
|
* ```
|
|
66
65
|
*/
|
|
@@ -26,6 +26,7 @@ import { Storage } from "../../core/storage/index.js";
|
|
|
26
26
|
import { Dlgs } from "../../core/traits/dlgs.js";
|
|
27
27
|
import { ViewWithToolbar } from "../../core/view/view-with-toolbar.js";
|
|
28
28
|
import { Config } from "../../config.js";
|
|
29
|
+
import { normalizeUploaderData } from "../uploader/helpers/normalize-uploader-data.js";
|
|
29
30
|
import "./config.js";
|
|
30
31
|
import { loadItems } from "./fetch/load-items.js";
|
|
31
32
|
import { loadTree } from "./fetch/load-tree.js";
|
|
@@ -46,21 +47,21 @@ let FileBrowser = class FileBrowser extends ViewWithToolbar {
|
|
|
46
47
|
onSelect(callback) {
|
|
47
48
|
return () => {
|
|
48
49
|
if (this.state.activeElements.length) {
|
|
49
|
-
const
|
|
50
|
-
const isImages = [];
|
|
50
|
+
const items = [];
|
|
51
51
|
this.state.activeElements.forEach(elm => {
|
|
52
52
|
const url = elm.fileURL;
|
|
53
53
|
if (url) {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
items.push({
|
|
55
|
+
file: url,
|
|
56
|
+
isImage: elm.isImage || false
|
|
57
|
+
});
|
|
56
58
|
}
|
|
57
59
|
});
|
|
58
60
|
this.close();
|
|
59
|
-
const data = {
|
|
61
|
+
const data = normalizeUploaderData({
|
|
60
62
|
baseurl: '',
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
63
|
+
items
|
|
64
|
+
});
|
|
64
65
|
if (isFunction(callback)) {
|
|
65
66
|
callback(data);
|
|
66
67
|
}
|
|
@@ -122,10 +123,9 @@ let FileBrowser = class FileBrowser extends ViewWithToolbar {
|
|
|
122
123
|
* ```javascript
|
|
123
124
|
* var fb = new Jodit.modules.FileBrowser(parent);
|
|
124
125
|
* fb.open(function (data) {
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* }
|
|
126
|
+
* data.items.forEach(function (item) {
|
|
127
|
+
* parent.s.insertImage(data.baseurl + item.file);
|
|
128
|
+
* });
|
|
129
129
|
* });
|
|
130
130
|
* ```
|
|
131
131
|
*/
|
|
@@ -111,5 +111,12 @@ export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UI
|
|
|
111
111
|
* Click handler
|
|
112
112
|
*/
|
|
113
113
|
protected onClick(originalEvent: MouseEvent): void;
|
|
114
|
+
/**
|
|
115
|
+
* After the button's action, a popup that stays open (an element's)
|
|
116
|
+
* keeps its place beside the element, and only the lists the button is
|
|
117
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
118
|
+
* popup closes
|
|
119
|
+
*/
|
|
120
|
+
private __closePopups;
|
|
114
121
|
destruct(): any;
|
|
115
122
|
}
|
|
@@ -13,6 +13,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
+
var ToolbarButton_1;
|
|
17
|
+
import { Component } from "../../../core/component/component.js";
|
|
16
18
|
import { STATUSES } from "../../../core/component/statuses.js";
|
|
17
19
|
import { KEY_DOWN, KEY_ENTER, KEY_ESC, KEY_SPACE, KEY_UP } from "../../../core/constants.js";
|
|
18
20
|
import { autobind } from "../../../core/decorators/autobind/autobind.js";
|
|
@@ -46,7 +48,7 @@ const FOCUSABLE_SELECTOR = [
|
|
|
46
48
|
'textarea:not([disabled])',
|
|
47
49
|
'[tabindex]:not([tabindex="-1"])'
|
|
48
50
|
].join(',');
|
|
49
|
-
let ToolbarButton = class ToolbarButton extends UIButton {
|
|
51
|
+
let ToolbarButton = ToolbarButton_1 = class ToolbarButton extends UIButton {
|
|
50
52
|
className() {
|
|
51
53
|
return 'ToolbarButton';
|
|
52
54
|
}
|
|
@@ -122,6 +124,8 @@ let ToolbarButton = class ToolbarButton extends UIButton {
|
|
|
122
124
|
onChangeText() {
|
|
123
125
|
if (isFunction(this.control.template)) {
|
|
124
126
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
127
|
+
// The name given before the text came would otherwise stay
|
|
128
|
+
this.updateAriaLabel();
|
|
125
129
|
}
|
|
126
130
|
else {
|
|
127
131
|
super.onChangeText();
|
|
@@ -588,10 +592,11 @@ let ToolbarButton = class ToolbarButton extends UIButton {
|
|
|
588
592
|
if (this.parentElement) {
|
|
589
593
|
this.parentElement.update();
|
|
590
594
|
}
|
|
595
|
+
this.__closePopups();
|
|
591
596
|
/**
|
|
592
597
|
* Fired after calling `button.exec` function
|
|
593
598
|
*/
|
|
594
|
-
(_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('
|
|
599
|
+
(_g = (_f = this.j) === null || _f === void 0 ? void 0 : _f.e) === null || _g === void 0 ? void 0 : _g.fire('afterExec');
|
|
595
600
|
}
|
|
596
601
|
if (result !== false) {
|
|
597
602
|
return;
|
|
@@ -607,9 +612,32 @@ let ToolbarButton = class ToolbarButton extends UIButton {
|
|
|
607
612
|
call(isJoditObject(this.j)
|
|
608
613
|
? this.j.execCommand.bind(this.j)
|
|
609
614
|
: this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
610
|
-
this.
|
|
615
|
+
this.__closePopups();
|
|
611
616
|
}
|
|
612
617
|
}
|
|
618
|
+
/**
|
|
619
|
+
* After the button's action, a popup that stays open (an element's)
|
|
620
|
+
* keeps its place beside the element, and only the lists the button is
|
|
621
|
+
* in close. Otherwise, as when the action removed the element, every
|
|
622
|
+
* popup closes
|
|
623
|
+
*/
|
|
624
|
+
__closePopups() {
|
|
625
|
+
var _a, _b;
|
|
626
|
+
const openers = [this];
|
|
627
|
+
for (let pe = this.parentElement; pe; pe = pe.parentElement) {
|
|
628
|
+
if (Component.isInstanceOf(pe, Popup) &&
|
|
629
|
+
pe.keepOpen &&
|
|
630
|
+
(!this.target || this.target.isConnected)) {
|
|
631
|
+
openers.forEach(button => button.__closePopup());
|
|
632
|
+
pe.updatePosition();
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
if (Component.isInstanceOf(pe, ToolbarButton_1)) {
|
|
636
|
+
openers.push(pe);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
(_b = (_a = this.j) === null || _a === void 0 ? void 0 : _a.e) === null || _b === void 0 ? void 0 : _b.fire('closeAllPopups');
|
|
640
|
+
}
|
|
613
641
|
destruct() {
|
|
614
642
|
this.__closePopup();
|
|
615
643
|
return super.destruct();
|
|
@@ -642,7 +670,7 @@ __decorate([
|
|
|
642
670
|
__decorate([
|
|
643
671
|
autobind
|
|
644
672
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
645
|
-
ToolbarButton = __decorate([
|
|
673
|
+
ToolbarButton = ToolbarButton_1 = __decorate([
|
|
646
674
|
component
|
|
647
675
|
], ToolbarButton);
|
|
648
676
|
export { ToolbarButton };
|