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.
- package/CHANGELOG.md +25 -3
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +82 -40
- 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 +82 -40
- 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 +82 -40
- 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 +82 -40
- 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 +82 -40
- 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/core/dom/dom.d.ts +5 -0
- package/esm/core/dom/dom.js +36 -12
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +11 -5
- package/esm/plugins/indent/indent.js +34 -22
- package/package.json +1 -1
- 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
|
-
|
|
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