jodit 4.4.8 → 4.5.2

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 (67) hide show
  1. package/CHANGELOG.md +32 -3
  2. package/README.md +4 -0
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +16 -7
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/debug/debug.css +1 -1
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  13. package/es2018/jodit.css +1 -1
  14. package/es2018/jodit.fat.min.js +2 -2
  15. package/es2018/jodit.js +16 -7
  16. package/es2018/jodit.min.js +2 -2
  17. package/es2018/plugins/debug/debug.css +1 -1
  18. package/es2018/plugins/debug/debug.js +1 -1
  19. package/es2018/plugins/debug/debug.min.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  22. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  23. package/es2021/jodit.css +1 -1
  24. package/es2021/jodit.fat.min.js +2 -2
  25. package/es2021/jodit.js +16 -7
  26. package/es2021/jodit.min.js +2 -2
  27. package/es2021/plugins/debug/debug.css +1 -1
  28. package/es2021/plugins/debug/debug.js +1 -1
  29. package/es2021/plugins/debug/debug.min.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  32. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  33. package/es2021.en/jodit.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +2 -2
  35. package/es2021.en/jodit.js +16 -7
  36. package/es2021.en/jodit.min.js +2 -2
  37. package/es2021.en/plugins/debug/debug.css +1 -1
  38. package/es2021.en/plugins/debug/debug.js +1 -1
  39. package/es2021.en/plugins/debug/debug.min.js +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  43. package/es5/5.fat.min.js +1 -1
  44. package/es5/5.min.js +1 -1
  45. package/es5/975.fat.min.js +1 -1
  46. package/es5/975.min.js +1 -1
  47. package/es5/jodit.css +2 -2
  48. package/es5/jodit.fat.min.js +2 -2
  49. package/es5/jodit.js +20 -7
  50. package/es5/jodit.min.css +2 -2
  51. package/es5/jodit.min.js +2 -2
  52. package/es5/plugins/debug/debug.css +1 -1
  53. package/es5/plugins/debug/debug.js +1 -1
  54. package/es5/plugins/debug/debug.min.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  57. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  58. package/esm/core/constants.js +1 -1
  59. package/esm/core/plugin/plugin-system.d.ts +1 -0
  60. package/esm/core/plugin/plugin-system.js +3 -0
  61. package/esm/plugins/all.d.ts +72 -0
  62. package/esm/plugins/all.js +73 -0
  63. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +11 -5
  64. package/esm/types/plugin.d.ts +1 -0
  65. package/package.json +1 -1
  66. package/types/core/plugin/plugin-system.d.ts +1 -0
  67. package/types/types/plugin.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,35 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.5.2
13
+
14
+ ### :rocket: New Feature
15
+
16
+ - Added plugins/all.js for ESM build
17
+
18
+ ```js
19
+ import { Jodit } from 'jodit/esm/index.js';
20
+ console.log(Jodit.plugins.size); // 21 See. https://github.com/xdan/jodit/blob/main/tools/utils/resolve-alias-imports.ts#L81
21
+ import 'jodit/esm/plugins/all.js';
22
+ console.log(Jodit.plugins.size); // 62 and more in the future
23
+ ```
24
+
25
+ ## 4.5.1
26
+
27
+ #### :boom: Breaking Change
28
+
29
+ - If the `cleanHTML.allowTags` option was set, then this did not affect `cleanHTML.denyTags`. Now if both options are set,
30
+ then `cleanHTML.denyTags` will only be applied to those tags that are not indicated in `cleanHTML.allowTags`
31
+
32
+ ```js
33
+ Jodit.make('#editor', {
34
+ cleanHTML: {
35
+ allowTags: 'script,p', // Only Script and P tags will be allowed
36
+ denyTags: 'script,img' // This option is completely ignored
37
+ }
38
+ });
39
+ ```
40
+
12
41
  ## 4.4.8
13
42
 
14
43
  ### :bug: Bug Fix
@@ -38,7 +67,7 @@ But if your code logic was configured specifically to insert into `document.body
38
67
 
39
68
  ```typescript
40
69
  const editor = Jodit.make('#editor', {
41
- popupRoot: document.body
70
+ popupRoot: document.body
42
71
  });
43
72
  ```
44
73
 
@@ -4240,7 +4269,7 @@ But you must remember that Jodit.modules.Dom! = JQuery
4240
4269
  Added [cleanHTML.allowTags](https://xdsoft.net/jodit/docs/classes/view.View.html#defaultoptions#cleanhtml) option.
4241
4270
 
4242
4271
  ```javascript
4243
- var editor = Jodit('#editor', {
4272
+ var editor = Jodit.make('#editor', {
4244
4273
  allowTags: 'p,a[href],table,tr,td, img[src=1.png]' // allow only <p>,<a>,<table>,<tr>,<td>,<img> tags and for <a> allow only `href` attribute and <img> allow only `src` atrribute == '1.png'
4245
4274
  });
4246
4275
  editor.val(
@@ -4252,7 +4281,7 @@ console.log(editor.val()); //Sorry! <a href="http://xsoft.net">Freeman</a>
4252
4281
  Or you can use PlainObject. This code equivalent to the top
4253
4282
 
4254
4283
  ```javascript
4255
- var editor = Jodit('#editor', {
4284
+ var editor = Jodit.make('#editor', {
4256
4285
  allowTags: {
4257
4286
  p: true,
4258
4287
  a: {
package/README.md CHANGED
@@ -91,6 +91,10 @@ You can manually include additional plugins and languages as needed.
91
91
  import { Jodit } from './node_modules/jodit/esm/index.js';
92
92
  import './node_modules/jodit/esm/plugins/add-new-line/add-new-line.js';
93
93
  import './node_modules/jodit/esm/plugins/fullsize/fullsize.js';
94
+
95
+ // Or import all plugins
96
+ import './node_modules/jodit/esm/plugins/all.js';
97
+
94
98
  import de from './node_modules/jodit/esm/langs/de.js';
95
99
 
96
100
  Jodit.langs.de = de;
package/es2015/jodit.css CHANGED
@@ -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.4.8
4
+ * Version: v4.5.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */