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.
- package/CHANGELOG.md +32 -3
- package/README.md +4 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +16 -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 +16 -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 +16 -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 +16 -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 +20 -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/core/plugin/plugin-system.d.ts +1 -0
- package/esm/core/plugin/plugin-system.js +3 -0
- package/esm/plugins/all.d.ts +72 -0
- package/esm/plugins/all.js +73 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +11 -5
- package/esm/types/plugin.d.ts +1 -0
- package/package.json +1 -1
- package/types/core/plugin/plugin-system.d.ts +1 -0
- 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
|
-
|
|
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