jodit 4.18.8 → 4.18.9

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 (133) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +8 -8
  4. package/es2015/jodit.js +53 -33
  5. package/es2015/jodit.min.js +6 -6
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +6 -6
  13. package/es2018/jodit.min.js +6 -6
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +6 -6
  18. package/es2021/jodit.js +53 -33
  19. package/es2021/jodit.min.js +6 -6
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +6 -6
  28. package/es2021.en/jodit.js +27 -7
  29. package/es2021.en/jodit.min.js +6 -6
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +53 -33
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/core/ui/button/tooltip/tooltip.js +7 -0
  52. package/esm/langs/ar.d.ts +1 -0
  53. package/esm/langs/ar.js +2 -1
  54. package/esm/langs/az.d.ts +1 -0
  55. package/esm/langs/az.js +2 -1
  56. package/esm/langs/cs_cz.d.ts +1 -0
  57. package/esm/langs/cs_cz.js +2 -1
  58. package/esm/langs/de.d.ts +1 -0
  59. package/esm/langs/de.js +2 -1
  60. package/esm/langs/es.d.ts +1 -0
  61. package/esm/langs/es.js +2 -1
  62. package/esm/langs/fa.d.ts +1 -0
  63. package/esm/langs/fa.js +2 -1
  64. package/esm/langs/fi.d.ts +1 -0
  65. package/esm/langs/fi.js +2 -1
  66. package/esm/langs/fr.d.ts +1 -0
  67. package/esm/langs/fr.js +2 -1
  68. package/esm/langs/he.d.ts +1 -0
  69. package/esm/langs/he.js +2 -1
  70. package/esm/langs/hu.d.ts +1 -0
  71. package/esm/langs/hu.js +2 -1
  72. package/esm/langs/id.d.ts +1 -0
  73. package/esm/langs/id.js +2 -1
  74. package/esm/langs/it.d.ts +1 -0
  75. package/esm/langs/it.js +2 -1
  76. package/esm/langs/ja.d.ts +1 -0
  77. package/esm/langs/ja.js +2 -1
  78. package/esm/langs/ko.d.ts +1 -0
  79. package/esm/langs/ko.js +2 -1
  80. package/esm/langs/mn.d.ts +1 -0
  81. package/esm/langs/mn.js +2 -1
  82. package/esm/langs/nl.d.ts +1 -0
  83. package/esm/langs/nl.js +2 -1
  84. package/esm/langs/no.d.ts +1 -0
  85. package/esm/langs/no.js +2 -1
  86. package/esm/langs/pl.d.ts +1 -0
  87. package/esm/langs/pl.js +2 -1
  88. package/esm/langs/pt_br.d.ts +1 -0
  89. package/esm/langs/pt_br.js +2 -1
  90. package/esm/langs/ru.d.ts +1 -0
  91. package/esm/langs/ru.js +2 -1
  92. package/esm/langs/sk.d.ts +1 -0
  93. package/esm/langs/sk.js +2 -1
  94. package/esm/langs/sv.d.ts +1 -0
  95. package/esm/langs/sv.js +2 -1
  96. package/esm/langs/tr.d.ts +1 -0
  97. package/esm/langs/tr.js +2 -1
  98. package/esm/langs/ua.d.ts +1 -0
  99. package/esm/langs/ua.js +2 -1
  100. package/esm/langs/zh_cn.d.ts +1 -0
  101. package/esm/langs/zh_cn.js +2 -1
  102. package/esm/langs/zh_tw.d.ts +1 -0
  103. package/esm/langs/zh_tw.js +2 -1
  104. package/esm/modules/dialog/dialog.js +1 -0
  105. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +11 -2
  106. package/esm/plugins/bold/config.js +2 -2
  107. package/package.json +1 -1
  108. package/types/langs/ar.d.ts +1 -0
  109. package/types/langs/az.d.ts +1 -0
  110. package/types/langs/cs_cz.d.ts +1 -0
  111. package/types/langs/de.d.ts +1 -0
  112. package/types/langs/es.d.ts +1 -0
  113. package/types/langs/fa.d.ts +1 -0
  114. package/types/langs/fi.d.ts +1 -0
  115. package/types/langs/fr.d.ts +1 -0
  116. package/types/langs/he.d.ts +1 -0
  117. package/types/langs/hu.d.ts +1 -0
  118. package/types/langs/id.d.ts +1 -0
  119. package/types/langs/it.d.ts +1 -0
  120. package/types/langs/ja.d.ts +1 -0
  121. package/types/langs/ko.d.ts +1 -0
  122. package/types/langs/mn.d.ts +1 -0
  123. package/types/langs/nl.d.ts +1 -0
  124. package/types/langs/no.d.ts +1 -0
  125. package/types/langs/pl.d.ts +1 -0
  126. package/types/langs/pt_br.d.ts +1 -0
  127. package/types/langs/ru.d.ts +1 -0
  128. package/types/langs/sk.d.ts +1 -0
  129. package/types/langs/sv.d.ts +1 -0
  130. package/types/langs/tr.d.ts +1 -0
  131. package/types/langs/ua.d.ts +1 -0
  132. package/types/langs/zh_cn.d.ts +1 -0
  133. package/types/langs/zh_tw.d.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.18.8
4
+ * Version: v4.18.9
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1822,7 +1822,7 @@ __webpack_require__.r(__webpack_exports__);
1822
1822
  * ```
1823
1823
  * @packageDocumentation
1824
1824
  * @module constants
1825
- */ const APP_VERSION = "4.18.8";
1825
+ */ const APP_VERSION = "4.18.9";
1826
1826
  // prettier-ignore
1827
1827
  const ES = "es2021";
1828
1828
  const IS_ES_MODERN = true;
@@ -15394,6 +15394,12 @@ class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIEle
15394
15394
  if (!isOwn) {
15395
15395
  return;
15396
15396
  }
15397
+ // A dialog's `aria-label` is its title and a file input's names its
15398
+ // click target. Neither is a tooltip, and both boxes would put one off
15399
+ // the screen
15400
+ if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_8__.attr)(e.target, 'role') === 'dialog' || jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isTag(e.target, 'input') && e.target.type === 'file') {
15401
+ return;
15402
+ }
15397
15403
  this.__currentTarget = e.target;
15398
15404
  const target = e.target;
15399
15405
  this.__open(()=>{
@@ -19844,6 +19850,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_15__.Config.prototype.dialog = {
19844
19850
  jodit_config__WEBPACK_IMPORTED_MODULE_15__.Config.prototype.controls.dialog = {
19845
19851
  close: {
19846
19852
  icon: 'cancel',
19853
+ tooltip: 'Close',
19847
19854
  exec: (dialog)=>{
19848
19855
  dialog.close();
19849
19856
  }
@@ -27979,8 +27986,21 @@ class UiAiAssistant extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_7__.U
27979
27986
  this.__toggleSubmitButton(true);
27980
27987
  }
27981
27988
  };
27982
- this.__submitButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_6__.Button)(jodit, 'ai-assistant', '').onAction(onSubmit);
27983
- this.__tryAgainButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_6__.Button)(jodit, 'update', '', 'initial').onAction(onSubmit);
27989
+ this.__submitButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_6__.Button)(jodit, {
27990
+ icon: {
27991
+ name: 'ai-assistant'
27992
+ },
27993
+ name: 'ai-assistant',
27994
+ tooltip: 'Submit'
27995
+ }).onAction(onSubmit);
27996
+ this.__tryAgainButton = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_6__.Button)(jodit, {
27997
+ icon: {
27998
+ name: 'update'
27999
+ },
28000
+ name: 'update',
28001
+ tooltip: 'Try Again',
28002
+ variant: 'initial'
28003
+ }).onAction(onSubmit);
27984
28004
  this.promptInput = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_6__.UITextArea(jodit, {
27985
28005
  name: 'prompt',
27986
28006
  required: true,
@@ -29355,13 +29375,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.subscript =
29355
29375
  tags: [
29356
29376
  'sub'
29357
29377
  ],
29358
- tooltip: 'subscript'
29378
+ tooltip: 'Subscript'
29359
29379
  };
29360
29380
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.superscript = {
29361
29381
  tags: [
29362
29382
  'sup'
29363
29383
  ],
29364
- tooltip: 'superscript'
29384
+ tooltip: 'Superscript'
29365
29385
  };
29366
29386
  jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.bold = {
29367
29387
  tagRegExp: /^(strong|b)$/i,
@@ -47371,7 +47391,7 @@ module.exports["default"] = {"Type something":"Start writing...","pencil":"Edit"
47371
47391
  /***/ 53414:
47372
47392
  /***/ (function(module) {
47373
47393
 
47374
- module.exports["default"] = [" URL","--Not Set--","About Jodit","Add column","Add folder","Add row","Advanced","Align","Align Center","Align Justify","Align Left","Align Right","All","Alternative","Alternative text","Anchor","Apply","Are you sure?","Audio properties","Autoplay","Background","Bold","Border","Border radius","Bottom","Break","Browse","Buy full version","Cancel","Center","Change mode","Chars: %d","Choose Content to Paste","Circle","Class name","Classes","Clean","Clear Formatting","Code","Controls","Copy selection","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Create directory","Crop","Cut selection","Decrease Indent","Default","Delete","Delete column","Delete row","Delete table","Dot","Drop file","Drop image","Edit","Edit image","Edit link","Embed code","Empty cell","Enter Directory name","Enter new name","Error on load folders","Error on load list","Eye","File Browser","Fill color or set the text color","Filter","Find","Find Next","Find Previous","Font family","Font size","For information about the license, please go to our website:","Free Non-commercial Version","Heading 1","Heading 2","Heading 3","Heading 4","Height","Horizontal align","Image","Image properties","Increase Indent","Insert","Insert Horizontal Line","Insert Image","Insert Ordered List","Insert Special Character","Insert Unordered List","Insert as Text","Insert className","Insert column after","Insert column before","Insert file","Insert format block","Insert link","Insert only Text","Insert row above","Insert row below","Insert table","Insert youtube/vimeo video","Interim Results","Italic","Jodit Editor","Jodit User's Guide","Keep","Keep Aspect Ratio","Left","License: %s","Line height","Link","List view","Loop","Lower Alpha","Lower Greek","Lower Roman","Margins","Merge","Middle","Muted","No","No follow","Normal","Number for the first item","Ok","Open in fullsize","Open in new tab","Open link","Open link in new tab","Paint format","Paste","Paste as HTML","Paste from clipboard","Please enter a web address","Please fill out this field","Poster","Press Alt for custom resizing","Print","Quadrate","Quote","Redo","Remove","Remove file","Rename","Replace","Replace with","Reset","Resize","Right","Save","Save as ...","Search for","Select","Select %s","Select Special Character","Select all","Select file","Show all","Sort by changed","Sort by name","Sort by size","Sound","Speech Recognize","Spellcheck","Split","Split horizontal","Split vertical","Src","Start at...","Start numbering at","Strike through","Styles","Text","The image has been successfully uploaded to the host!","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","There are no files","Tiles view","Title","Top","Type something","Underline","Undo","Unlink","Update","Update file list","Upload","Upload file","Upper Alpha","Upper Roman","Vertical align","Video properties","Width","Word Paste Detected","Words: %d","Yes","You can only edit your own images. Download this image on the host?","Your browser doesn't support direct access to the clipboard.","Your code is similar to HTML. Keep as HTML?","about","apply","bold","bottom","brush","circle","contains detailed help for using","copy","cut","default","delete","dot","download","edit","eraser","file","font","fontsize","fullsize","hr","image","indent","italic","left","link","newline","ol","or click","outdent","palette","paragraph","pencil","preview","print","redo","right","selectall","shrink","sound","source","space","spellcheck","square","strikethrough","subscript","superscript","table","top","type dir name","type name","ul","underline","undo","video"]
47394
+ module.exports["default"] = [" URL","--Not Set--","About Jodit","Add column","Add folder","Add row","Advanced","Align","Align Center","Align Justify","Align Left","Align Right","All","Alternative","Alternative text","Anchor","Apply","Are you sure?","Audio properties","Autoplay","Background","Bold","Border","Border radius","Bottom","Break","Browse","Buy full version","Cancel","Center","Change mode","Chars: %d","Choose Content to Paste","Circle","Class name","Classes","Clean","Clear Formatting","Close","Code","Controls","Copy selection","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Create directory","Crop","Cut selection","Decrease Indent","Default","Delete","Delete column","Delete row","Delete table","Dot","Drop file","Drop image","Edit","Edit image","Edit link","Embed code","Empty cell","Enter Directory name","Enter new name","Error on load folders","Error on load list","Eye","File Browser","Fill color or set the text color","Filter","Find","Find Next","Find Previous","Font family","Font size","For information about the license, please go to our website:","Free Non-commercial Version","Heading 1","Heading 2","Heading 3","Heading 4","Height","Horizontal align","Image","Image properties","Increase Indent","Insert","Insert Horizontal Line","Insert Image","Insert Ordered List","Insert Special Character","Insert Unordered List","Insert as Text","Insert className","Insert column after","Insert column before","Insert file","Insert format block","Insert link","Insert only Text","Insert row above","Insert row below","Insert table","Insert youtube/vimeo video","Interim Results","Italic","Jodit Editor","Jodit User's Guide","Keep","Keep Aspect Ratio","Left","License: %s","Line height","Link","List view","Loop","Lower Alpha","Lower Greek","Lower Roman","Margins","Merge","Middle","Muted","No","No follow","Normal","Number for the first item","Ok","Open in fullsize","Open in new tab","Open link","Open link in new tab","Paint format","Paste","Paste as HTML","Paste from clipboard","Please enter a web address","Please fill out this field","Poster","Press Alt for custom resizing","Print","Quadrate","Quote","Redo","Remove","Remove file","Rename","Replace","Replace with","Reset","Resize","Right","Save","Save as ...","Search for","Select","Select %s","Select Special Character","Select all","Select file","Show all","Sort by changed","Sort by name","Sort by size","Sound","Speech Recognize","Spellcheck","Split","Split horizontal","Split vertical","Src","Start at...","Start numbering at","Strike through","Styles","Text","The image has been successfully uploaded to the host!","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","There are no files","Tiles view","Title","Top","Type something","Underline","Undo","Unlink","Update","Update file list","Upload","Upload file","Upper Alpha","Upper Roman","Vertical align","Video properties","Width","Word Paste Detected","Words: %d","Yes","You can only edit your own images. Download this image on the host?","Your browser doesn't support direct access to the clipboard.","Your code is similar to HTML. Keep as HTML?","about","apply","bold","bottom","brush","circle","contains detailed help for using","copy","cut","default","delete","dot","download","edit","eraser","file","font","fontsize","fullsize","hr","image","indent","italic","left","link","newline","ol","or click","outdent","palette","paragraph","pencil","preview","print","redo","right","selectall","shrink","sound","source","space","spellcheck","square","strikethrough","subscript","superscript","table","top","type dir name","type name","ul","underline","undo","video"]
47375
47395
 
47376
47396
  /***/ }),
47377
47397