jodit 4.4.8 → 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.
- package/CHANGELOG.md +19 -3
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +13 -7
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +13 -7
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +13 -7
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +13 -7
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/975.fat.min.js +1 -1
- package/es5/975.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +13 -7
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +11 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,22 @@
|
|
|
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
|
+
|
|
12
28
|
## 4.4.8
|
|
13
29
|
|
|
14
30
|
### :bug: Bug Fix
|
|
@@ -38,7 +54,7 @@ But if your code logic was configured specifically to insert into `document.body
|
|
|
38
54
|
|
|
39
55
|
```typescript
|
|
40
56
|
const editor = Jodit.make('#editor', {
|
|
41
|
-
|
|
57
|
+
popupRoot: document.body
|
|
42
58
|
});
|
|
43
59
|
```
|
|
44
60
|
|
|
@@ -4240,7 +4256,7 @@ But you must remember that Jodit.modules.Dom! = JQuery
|
|
|
4240
4256
|
Added [cleanHTML.allowTags](https://xdsoft.net/jodit/docs/classes/view.View.html#defaultoptions#cleanhtml) option.
|
|
4241
4257
|
|
|
4242
4258
|
```javascript
|
|
4243
|
-
var editor = Jodit('#editor', {
|
|
4259
|
+
var editor = Jodit.make('#editor', {
|
|
4244
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'
|
|
4245
4261
|
});
|
|
4246
4262
|
editor.val(
|
|
@@ -4252,7 +4268,7 @@ console.log(editor.val()); //Sorry! <a href="http://xsoft.net">Freeman</a>
|
|
|
4252
4268
|
Or you can use PlainObject. This code equivalent to the top
|
|
4253
4269
|
|
|
4254
4270
|
```javascript
|
|
4255
|
-
var editor = Jodit('#editor', {
|
|
4271
|
+
var editor = Jodit.make('#editor', {
|
|
4256
4272
|
allowTags: {
|
|
4257
4273
|
p: true,
|
|
4258
4274
|
a: {
|
package/es2015/jodit.css
CHANGED