jodit 4.4.7 → 4.5.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 (63) hide show
  1. package/CHANGELOG.md +25 -3
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +82 -40
  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 +82 -40
  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 +82 -40
  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 +82 -40
  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/5.fat.min.js +1 -1
  43. package/es5/5.min.js +1 -1
  44. package/es5/975.fat.min.js +1 -1
  45. package/es5/975.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 +82 -40
  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/dom/dom.d.ts +5 -0
  59. package/esm/core/dom/dom.js +36 -12
  60. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +11 -5
  61. package/esm/plugins/indent/indent.js +34 -22
  62. package/package.json +1 -1
  63. package/types/core/dom/dom.d.ts +5 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,28 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.5.1
13
+
14
+ #### :boom: Breaking Change
15
+
16
+ - If the `cleanHTML.allowTags` option was set, then this did not affect `cleanHTML.denyTags`. Now if both options are set,
17
+ then `cleanHTML.denyTags` will only be applied to those tags that are not indicated in `cleanHTML.allowTags`
18
+
19
+ ```js
20
+ Jodit.make('#editor', {
21
+ cleanHTML: {
22
+ allowTags: 'script,p', // Only Script and P tags will be allowed
23
+ denyTags: 'script,img' // This option is completely ignored
24
+ }
25
+ });
26
+ ```
27
+
28
+ ## 4.4.8
29
+
30
+ ### :bug: Bug Fix
31
+
32
+ - Fixed an error when in Jodit in the line transfer mode BR, when the indent button pressed the element was removed
33
+
12
34
  ## 4.3.1
13
35
 
14
36
  #### :boom: Breaking Change
@@ -32,7 +54,7 @@ But if your code logic was configured specifically to insert into `document.body
32
54
 
33
55
  ```typescript
34
56
  const editor = Jodit.make('#editor', {
35
- popupRoot: document.body
57
+ popupRoot: document.body
36
58
  });
37
59
  ```
38
60
 
@@ -4234,7 +4256,7 @@ But you must remember that Jodit.modules.Dom! = JQuery
4234
4256
  Added [cleanHTML.allowTags](https://xdsoft.net/jodit/docs/classes/view.View.html#defaultoptions#cleanhtml) option.
4235
4257
 
4236
4258
  ```javascript
4237
- var editor = Jodit('#editor', {
4259
+ var editor = Jodit.make('#editor', {
4238
4260
  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'
4239
4261
  });
4240
4262
  editor.val(
@@ -4246,7 +4268,7 @@ console.log(editor.val()); //Sorry! <a href="http://xsoft.net">Freeman</a>
4246
4268
  Or you can use PlainObject. This code equivalent to the top
4247
4269
 
4248
4270
  ```javascript
4249
- var editor = Jodit('#editor', {
4271
+ var editor = Jodit.make('#editor', {
4250
4272
  allowTags: {
4251
4273
  p: true,
4252
4274
  a: {
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.7
4
+ * Version: v4.5.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */