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.
Files changed (217) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/es2015/jodit.css +76 -1
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +12 -12
  5. package/es2015/jodit.js +1464 -599
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +12 -12
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +12 -12
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +12 -12
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +76 -1
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +17 -17
  23. package/es2021/jodit.js +1445 -596
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +17 -17
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +76 -1
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +17 -17
  35. package/es2021.en/jodit.js +1419 -570
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +17 -17
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +96 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +1707 -706
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/config.d.ts +10 -3
  60. package/esm/core/constants.js +1 -1
  61. package/esm/core/helpers/utils/anchor.d.ts +22 -0
  62. package/esm/core/helpers/utils/anchor.js +29 -0
  63. package/esm/core/helpers/utils/index.d.ts +1 -0
  64. package/esm/core/helpers/utils/index.js +1 -0
  65. package/esm/core/ui/form/inputs/input/input.js +2 -0
  66. package/esm/core/ui/popup/popup.d.ts +5 -0
  67. package/esm/core/ui/popup/popup.js +5 -0
  68. package/esm/jodit.js +11 -14
  69. package/esm/langs/ar.d.ts +5 -0
  70. package/esm/langs/ar.js +5 -0
  71. package/esm/langs/az.d.ts +5 -0
  72. package/esm/langs/az.js +5 -0
  73. package/esm/langs/cs_cz.d.ts +5 -0
  74. package/esm/langs/cs_cz.js +6 -1
  75. package/esm/langs/de.d.ts +5 -0
  76. package/esm/langs/de.js +6 -0
  77. package/esm/langs/es.d.ts +5 -0
  78. package/esm/langs/es.js +6 -1
  79. package/esm/langs/fa.d.ts +5 -0
  80. package/esm/langs/fa.js +6 -1
  81. package/esm/langs/fi.d.ts +5 -0
  82. package/esm/langs/fi.js +5 -0
  83. package/esm/langs/fr.d.ts +5 -0
  84. package/esm/langs/fr.js +5 -0
  85. package/esm/langs/he.d.ts +5 -0
  86. package/esm/langs/he.js +6 -1
  87. package/esm/langs/hu.d.ts +5 -0
  88. package/esm/langs/hu.js +5 -0
  89. package/esm/langs/id.d.ts +5 -0
  90. package/esm/langs/id.js +6 -1
  91. package/esm/langs/it.d.ts +5 -0
  92. package/esm/langs/it.js +6 -1
  93. package/esm/langs/ja.d.ts +5 -0
  94. package/esm/langs/ja.js +6 -1
  95. package/esm/langs/ko.d.ts +5 -0
  96. package/esm/langs/ko.js +6 -1
  97. package/esm/langs/mn.d.ts +5 -0
  98. package/esm/langs/mn.js +6 -1
  99. package/esm/langs/nl.d.ts +5 -0
  100. package/esm/langs/nl.js +5 -0
  101. package/esm/langs/no.d.ts +5 -0
  102. package/esm/langs/no.js +5 -0
  103. package/esm/langs/pl.d.ts +5 -0
  104. package/esm/langs/pl.js +5 -0
  105. package/esm/langs/pt_br.d.ts +5 -0
  106. package/esm/langs/pt_br.js +6 -1
  107. package/esm/langs/ru.d.ts +5 -0
  108. package/esm/langs/ru.js +6 -1
  109. package/esm/langs/sk.d.ts +5 -0
  110. package/esm/langs/sk.js +5 -0
  111. package/esm/langs/sv.d.ts +5 -0
  112. package/esm/langs/sv.js +5 -0
  113. package/esm/langs/tr.d.ts +5 -0
  114. package/esm/langs/tr.js +6 -1
  115. package/esm/langs/ua.d.ts +5 -0
  116. package/esm/langs/ua.js +6 -1
  117. package/esm/langs/zh_cn.d.ts +5 -0
  118. package/esm/langs/zh_cn.js +6 -1
  119. package/esm/langs/zh_tw.d.ts +5 -0
  120. package/esm/langs/zh_tw.js +5 -0
  121. package/esm/modules/file-browser/file-browser.d.ts +3 -4
  122. package/esm/modules/file-browser/file-browser.js +12 -12
  123. package/esm/modules/toolbar/button/button.d.ts +7 -0
  124. package/esm/modules/toolbar/button/button.js +32 -4
  125. package/esm/modules/uploader/config.js +18 -18
  126. package/esm/modules/uploader/helpers/index.d.ts +1 -0
  127. package/esm/modules/uploader/helpers/index.js +1 -0
  128. package/esm/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
  129. package/esm/modules/uploader/helpers/normalize-uploader-data.js +54 -0
  130. package/esm/modules/uploader/helpers/send-files.js +11 -6
  131. package/esm/modules/uploader/uploader.d.ts +4 -5
  132. package/esm/modules/uploader/uploader.js +12 -8
  133. package/esm/plugins/all.d.ts +1 -0
  134. package/esm/plugins/all.js +1 -0
  135. package/esm/plugins/anchor/anchor.d.ts +67 -0
  136. package/esm/plugins/anchor/anchor.js +302 -0
  137. package/esm/plugins/anchor/config.d.ts +6 -0
  138. package/esm/plugins/anchor/config.js +13 -0
  139. package/esm/plugins/file/file.d.ts +1 -1
  140. package/esm/plugins/file/file.js +6 -6
  141. package/esm/plugins/image/image.js +2 -2
  142. package/esm/plugins/image-caption/image-caption.js +1 -2
  143. package/esm/plugins/image-properties/utils/open-image-popup.js +7 -6
  144. package/esm/plugins/index.d.ts +1 -0
  145. package/esm/plugins/inline-popup/config/config.d.ts +8 -2
  146. package/esm/plugins/inline-popup/config/config.js +1 -0
  147. package/esm/plugins/inline-popup/config/items/cells.js +0 -10
  148. package/esm/plugins/inline-popup/config/items/img.js +1 -1
  149. package/esm/plugins/inline-popup/inline-popup.d.ts +9 -12
  150. package/esm/plugins/inline-popup/inline-popup.js +53 -77
  151. package/esm/plugins/link/link.js +150 -3
  152. package/esm/plugins/link/template.js +3 -1
  153. package/esm/plugins/resizer/resizer.d.ts +6 -0
  154. package/esm/plugins/resizer/resizer.js +11 -0
  155. package/esm/plugins/select/select.d.ts +31 -0
  156. package/esm/plugins/select/select.js +235 -2
  157. package/esm/plugins/select-cells/select-cells.d.ts +11 -0
  158. package/esm/plugins/select-cells/select-cells.js +48 -17
  159. package/esm/plugins/video/config.d.ts +1 -1
  160. package/esm/plugins/video/config.js +4 -3
  161. package/esm/plugins/video-properties/video-properties.js +7 -6
  162. package/esm/styles/icons/anchor.svg.js +1 -0
  163. package/esm/styles/icons/index.d.ts +1 -1
  164. package/esm/styles/icons/index.js +2 -1
  165. package/esm/types/file-browser.d.ts +8 -1
  166. package/esm/types/popup.d.ts +1 -0
  167. package/esm/types/uploader.d.ts +39 -1
  168. package/package.json +1 -1
  169. package/types/config.d.ts +10 -3
  170. package/types/core/helpers/utils/anchor.d.ts +22 -0
  171. package/types/core/helpers/utils/index.d.ts +1 -0
  172. package/types/core/ui/popup/popup.d.ts +5 -0
  173. package/types/langs/ar.d.ts +5 -0
  174. package/types/langs/az.d.ts +5 -0
  175. package/types/langs/cs_cz.d.ts +5 -0
  176. package/types/langs/de.d.ts +5 -0
  177. package/types/langs/es.d.ts +5 -0
  178. package/types/langs/fa.d.ts +5 -0
  179. package/types/langs/fi.d.ts +5 -0
  180. package/types/langs/fr.d.ts +5 -0
  181. package/types/langs/he.d.ts +5 -0
  182. package/types/langs/hu.d.ts +5 -0
  183. package/types/langs/id.d.ts +5 -0
  184. package/types/langs/it.d.ts +5 -0
  185. package/types/langs/ja.d.ts +5 -0
  186. package/types/langs/ko.d.ts +5 -0
  187. package/types/langs/mn.d.ts +5 -0
  188. package/types/langs/nl.d.ts +5 -0
  189. package/types/langs/no.d.ts +5 -0
  190. package/types/langs/pl.d.ts +5 -0
  191. package/types/langs/pt_br.d.ts +5 -0
  192. package/types/langs/ru.d.ts +5 -0
  193. package/types/langs/sk.d.ts +5 -0
  194. package/types/langs/sv.d.ts +5 -0
  195. package/types/langs/tr.d.ts +5 -0
  196. package/types/langs/ua.d.ts +5 -0
  197. package/types/langs/zh_cn.d.ts +5 -0
  198. package/types/langs/zh_tw.d.ts +5 -0
  199. package/types/modules/file-browser/file-browser.d.ts +3 -4
  200. package/types/modules/toolbar/button/button.d.ts +7 -0
  201. package/types/modules/uploader/helpers/index.d.ts +1 -0
  202. package/types/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
  203. package/types/modules/uploader/uploader.d.ts +4 -5
  204. package/types/plugins/anchor/anchor.d.ts +67 -0
  205. package/types/plugins/anchor/config.d.ts +6 -0
  206. package/types/plugins/file/file.d.ts +1 -1
  207. package/types/plugins/index.d.ts +1 -0
  208. package/types/plugins/inline-popup/config/config.d.ts +8 -2
  209. package/types/plugins/inline-popup/inline-popup.d.ts +9 -12
  210. package/types/plugins/resizer/resizer.d.ts +6 -0
  211. package/types/plugins/select/select.d.ts +31 -0
  212. package/types/plugins/select-cells/select-cells.d.ts +11 -0
  213. package/types/plugins/video/config.d.ts +1 -1
  214. package/types/styles/icons/index.d.ts +1 -1
  215. package/types/types/file-browser.d.ts +8 -1
  216. package/types/types/popup.d.ts +1 -0
  217. 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: 'Link',
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: '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: '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',
@@ -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;
@@ -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: 'Link',
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: 'Bağlantı',
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': 'Вставити блочний елемент',
@@ -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;
@@ -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: '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': '格式块',
@@ -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;
@@ -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
- * var i;
61
- * for (i = 0;i < data.files.length; i += 1) {
62
- * parent.s.insertImage(data.baseurl + data.files[i]);
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 files = [];
50
- const isImages = [];
50
+ const items = [];
51
51
  this.state.activeElements.forEach(elm => {
52
52
  const url = elm.fileURL;
53
53
  if (url) {
54
- files.push(url);
55
- isImages.push(elm.isImage || false);
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
- files,
62
- isImages
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
- * var i;
126
- * for (i = 0;i < data.files.length; i += 1) {
127
- * parent.s.insertImage(data.baseurl + data.files[i]);
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('closeAllPopups afterExec');
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.j.e.fire('closeAllPopups');
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 };