jodit 4.2.45 → 4.2.47

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 (65) hide show
  1. package/CHANGELOG.md +814 -811
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +10 -6
  5. package/es2015/jodit.min.js +2 -2
  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.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +10 -5
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.css +1 -1
  17. package/es2018/plugins/debug/debug.js +1 -1
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  22. package/es2021/jodit.css +1 -1
  23. package/es2021/jodit.fat.min.js +2 -2
  24. package/es2021/jodit.js +10 -5
  25. package/es2021/jodit.min.js +2 -2
  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 +1 -1
  33. package/es2021.en/jodit.fat.min.js +2 -2
  34. package/es2021.en/jodit.js +10 -5
  35. package/es2021.en/jodit.min.js +2 -2
  36. package/es2021.en/plugins/debug/debug.css +1 -1
  37. package/es2021.en/plugins/debug/debug.js +1 -1
  38. package/es2021.en/plugins/debug/debug.min.js +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  42. package/es5/164.fat.min.js +1 -1
  43. package/es5/164.min.js +1 -1
  44. package/es5/5.fat.min.js +1 -1
  45. package/es5/5.min.js +1 -1
  46. package/es5/jodit.css +2 -2
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +10 -6
  49. package/es5/jodit.min.css +2 -2
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  57. package/esm/core/constants.js +1 -1
  58. package/esm/core/traits/dlgs.js +1 -0
  59. package/esm/core/view/view.js +3 -3
  60. package/esm/modules/dialog/dialog.js +4 -0
  61. package/esm/types/view.d.ts +1 -0
  62. package/package.json +1 -1
  63. package/types/types/view.d.ts +1 -0
  64. package/esm/polyfills.d.ts +0 -10
  65. package/types/polyfills.d.ts +0 -10
@@ -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.2.45
4
+ * Version: v4.2.47
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2.45
4
+ * Version: v4.2.47
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2.45
4
+ * Version: v4.2.47
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2.45
4
+ * Version: v4.2.47
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2.45
4
+ * Version: v4.2.47
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.2.45
4
+ * Version: v4.2.47
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -3,7 +3,7 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- export const APP_VERSION = "4.2.45";
6
+ export const APP_VERSION = "4.2.47";
7
7
  // prettier-ignore
8
8
  export const ES = "es2020";
9
9
  export const IS_ES_MODERN = true;
@@ -13,6 +13,7 @@ export class Dlgs {
13
13
  shadowRoot: this.o.shadowRoot,
14
14
  ownerWindow: this.o.ownerWindow,
15
15
  defaultTimeout: this.o.defaultTimeout,
16
+ direction: this.o.direction,
16
17
  theme: this.o.theme,
17
18
  globalFullSize: this.o.globalFullSize,
18
19
  ...options
@@ -260,11 +260,11 @@ let View = View_1 = class View extends Component {
260
260
  super.destruct();
261
261
  }
262
262
  };
263
- // from webpack.config.js
263
+ // from webpack.config.ts
264
264
  View.ES = ES;
265
265
  View.version = APP_VERSION;
266
- View.esNext = IS_ES_NEXT; // from webpack.config.js
267
- View.esModern = IS_ES_MODERN; // from webpack.config.js
266
+ View.esNext = IS_ES_NEXT; // from webpack.config.ts
267
+ View.esModern = IS_ES_MODERN; // from webpack.config.ts
268
268
  __decorate([
269
269
  cache
270
270
  ], View.prototype, "buffer", null);
@@ -508,6 +508,10 @@ let Dialog = Dialog_1 = class Dialog extends ViewWithToolbar {
508
508
  <div class="${n('resizer')}">${Icon.get('resize_handler')}</div>
509
509
  </div>
510
510
  </div>`);
511
+ if (self.options.direction === 'rtl') {
512
+ self.container.style.direction = 'rtl';
513
+ self.container.setAttribute('dir', 'rtl');
514
+ }
511
515
  if (this.o.zIndex) {
512
516
  this.container.style.zIndex = this.o.zIndex.toString();
513
517
  }
@@ -48,6 +48,7 @@ interface IViewOptions extends ILanguageOptions, IToolbarOptions {
48
48
  disabled?: boolean;
49
49
  readonly?: boolean;
50
50
  iframe?: boolean;
51
+ direction?: 'ltr' | 'rtl' | '';
51
52
  namespace?: string;
52
53
  activeButtonsInReadOnly?: string[];
53
54
  allowTabNavigation?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit",
3
- "version": "4.2.45",
3
+ "version": "4.2.47",
4
4
  "description": "Jodit is an awesome and useful wysiwyg editor with filebrowser",
5
5
  "main": "esm/index.js",
6
6
  "types": "types/index.d.ts",
@@ -48,6 +48,7 @@ interface IViewOptions extends ILanguageOptions, IToolbarOptions {
48
48
  disabled?: boolean;
49
49
  readonly?: boolean;
50
50
  iframe?: boolean;
51
+ direction?: 'ltr' | 'rtl' | '';
51
52
  namespace?: string;
52
53
  activeButtonsInReadOnly?: string[];
53
54
  allowTabNavigation?: boolean;
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- import "classlist-polyfill";
7
- import "es6-promise/auto";
8
- import "core-js/es/symbol";
9
- import "core-js/es/array/find-index";
10
- import "core-js/es/array/from";
@@ -1,10 +0,0 @@
1
- /*!
2
- * Jodit Editor (https://xdsoft.net/jodit/)
3
- * Released under MIT see LICENSE.txt in the project root for license information.
4
- * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
- */
6
- import "classlist-polyfill";
7
- import "es6-promise/auto";
8
- import "core-js/es/symbol";
9
- import "core-js/es/array/find-index";
10
- import "core-js/es/array/from";