jodit 3.9.2 → 3.10.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/.idea/workspace.xml +317 -283
- package/CHANGELOG.MD +320 -118
- package/README.md +0 -1
- package/build/jodit.css +703 -617
- package/build/jodit.es2018.css +493 -437
- package/build/jodit.es2018.en.css +493 -437
- package/build/jodit.es2018.en.js +1549 -773
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +1549 -773
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +2616 -1713
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/index.d.ts +10 -0
- package/package.json +10 -10
- package/src/config.ts +19 -20
- package/src/core/component/component.ts +16 -15
- package/src/core/component/statuses.ts +6 -6
- package/src/core/dom.ts +16 -4
- package/src/core/events/event-emitter.ts +4 -2
- package/src/core/global.ts +13 -2
- package/src/core/helpers/append-script.ts +14 -0
- package/src/core/helpers/selector.ts +8 -3
- package/src/core/helpers/size/index.ts +1 -0
- package/src/core/helpers/size/object-size.ts +22 -0
- package/src/core/selection/select.ts +1 -0
- package/src/core/selection/style/api/{get-closest-wrapper.ts → extract.ts} +26 -43
- package/src/core/selection/style/api/finite-state-machine.ts +66 -0
- package/src/core/selection/style/api/index.ts +12 -5
- package/src/core/selection/style/api/{check-special-elements.ts → is-inside-invisible-element.ts} +1 -1
- package/src/core/selection/style/api/is-suit-element.ts +12 -1
- package/src/core/selection/style/api/toggle/toggle-css.ts +134 -0
- package/src/core/selection/style/api/toggle/toggle-ordered-list.ts +49 -0
- package/src/core/selection/style/api/toggle-commit-styles.ts +27 -0
- package/src/core/selection/style/api/wrap-and-commit-style.ts +68 -0
- package/src/core/selection/style/api/wrap-ordered-list.ts +37 -0
- package/src/core/selection/style/api/wrap-unwrapped-text.ts +1 -4
- package/src/core/selection/style/apply-style.ts +161 -97
- package/src/core/selection/style/commit-style.ts +13 -0
- package/src/core/storage/engines/local-storage-provider.ts +9 -3
- package/src/core/storage/engines/memory-storage-provider.ts +6 -3
- package/src/core/storage/storage.ts +7 -4
- package/src/core/ui/button/button/button.less +10 -8
- package/src/core/ui/button/button/button.ts +9 -9
- package/src/core/ui/button/group/group.ts +2 -2
- package/src/core/ui/element.ts +4 -3
- package/src/core/ui/form/block/block.ts +1 -1
- package/src/core/ui/form/form.ts +8 -0
- package/src/core/ui/form/inputs/area/area.less +5 -0
- package/src/core/ui/form/inputs/area/area.ts +22 -1
- package/src/core/ui/form/inputs/checkbox/checkbox.ts +28 -4
- package/src/core/ui/form/inputs/input/input.less +1 -1
- package/src/core/ui/form/inputs/input/input.ts +14 -4
- package/src/core/ui/helpers/buttons.ts +14 -6
- package/src/core/ui/icon.ts +3 -1
- package/src/core/ui/index.ts +1 -3
- package/src/core/ui/list/group.less +8 -2
- package/src/core/ui/list/group.ts +2 -2
- package/src/{modules/file-browser/consts.ts → core/ui/list/index.ts} +4 -4
- package/src/core/ui/list/list.less +10 -1
- package/src/core/ui/list/list.ts +20 -3
- package/src/core/ui/{separator.ts → list/separator.ts} +2 -2
- package/src/core/ui/list/spacer.ts +15 -0
- package/src/core/ui/popup/popup.less +5 -3
- package/src/core/ui/popup/popup.ts +53 -1
- package/src/core/view/view-with-toolbar.ts +6 -1
- package/src/jodit.ts +17 -14
- package/src/modules/dialog/dialog.less +1 -16
- package/src/modules/dialog/dialog.ts +10 -3
- package/src/modules/file-browser/builders/context-menu.ts +29 -22
- package/src/modules/file-browser/config.ts +10 -2
- package/src/modules/file-browser/file-browser.ts +50 -29
- package/src/modules/file-browser/listeners/native-listeners.ts +37 -19
- package/src/modules/file-browser/listeners/state-listeners.ts +48 -22
- package/src/modules/file-browser/styles/file-browser.less +4 -291
- package/src/modules/file-browser/styles/preview.less +11 -8
- package/src/modules/file-browser/ui/files/files.less +174 -0
- package/src/modules/file-browser/ui/files/files.ts +14 -0
- package/src/modules/file-browser/ui/index.ts +8 -0
- package/src/modules/file-browser/ui/tree/tree.less +118 -0
- package/src/modules/file-browser/ui/tree/tree.ts +14 -0
- package/src/modules/status-bar/status-bar.less +27 -1
- package/src/modules/status-bar/status-bar.ts +15 -1
- package/src/modules/table.ts +122 -98
- package/src/modules/toolbar/collection/collection.ts +17 -8
- package/src/modules/toolbar/collection/editor-collection.ts +27 -2
- package/src/modules/widget/file-selector/file-selector.ts +1 -1
- package/src/modules/widget/tabs/tabs.less +2 -1
- package/src/modules/widget/tabs/tabs.ts +5 -3
- package/src/plugins/add-new-line/add-new-line.ts +1 -0
- package/src/plugins/bold.ts +2 -2
- package/src/plugins/clipboard/drag-and-drop.ts +4 -1
- package/src/plugins/clipboard/paste/paste.ts +1 -1
- package/src/plugins/font.ts +11 -1
- package/src/plugins/image/image-properties/image-properties.ts +7 -0
- package/src/plugins/index.ts +1 -0
- package/src/plugins/inline-popup/config/config.ts +1 -0
- package/src/plugins/inline-popup/config/items/toolbar.ts +33 -0
- package/src/plugins/inline-popup/inline-popup.ts +17 -0
- package/src/plugins/link/template.ts +2 -2
- package/src/plugins/mobile.ts +10 -14
- package/src/plugins/ordered-list.ts +40 -1
- package/src/plugins/powered-by-jodit.ts +39 -0
- package/src/plugins/print/preview.ts +103 -48
- package/src/plugins/resizer/resizer.less +10 -7
- package/src/plugins/resizer/resizer.ts +12 -14
- package/src/plugins/size/resize-handler.ts +4 -1
- package/src/plugins/size/size.less +2 -19
- package/src/plugins/size/size.ts +6 -1
- package/src/plugins/source/const.ts +7 -0
- package/src/plugins/source/editor/engines/ace.ts +5 -0
- package/src/plugins/source/source.ts +33 -7
- package/src/plugins/sticky/sticky.ts +2 -0
- package/src/plugins/table/config.ts +3 -1
- package/src/plugins/table/table.less +0 -1
- package/src/styles/icons/index.ts +2 -0
- package/src/styles/icons/resize-handler.svg +4 -0
- package/src/styles/jodit.less +6 -0
- package/src/styles/mixins.less +20 -0
- package/src/styles/themes/dark.less +11 -1
- package/src/types/ajax.d.ts +0 -1
- package/src/types/file-browser.d.ts +13 -1
- package/src/types/jodit.d.ts +4 -1
- package/src/types/popup.d.ts +1 -0
- package/src/types/select.d.ts +2 -0
- package/src/types/storage.ts +3 -3
- package/src/types/style.d.ts +8 -0
- package/src/types/toolbar.d.ts +9 -2
- package/src/types/types.d.ts +1 -1
- package/src/types/ui.d.ts +22 -4
- package/src/types/view.d.ts +1 -0
- package/types/core/component/component.d.ts +10 -5
- package/types/core/component/statuses.d.ts +6 -6
- package/types/core/dom.d.ts +3 -2
- package/types/core/helpers/append-script.d.ts +1 -0
- package/types/core/helpers/selector.d.ts +2 -3
- package/types/core/helpers/size/index.d.ts +1 -0
- package/types/core/helpers/size/object-size.d.ts +7 -0
- package/types/core/selection/style/api/{get-closest-wrapper.d.ts → extract.d.ts} +6 -5
- package/types/core/selection/style/api/finite-state-machine.d.ts +21 -0
- package/types/core/selection/style/api/index.d.ts +12 -5
- package/types/core/selection/style/api/{check-special-elements.d.ts → is-inside-invisible-element.d.ts} +1 -1
- package/types/core/selection/style/api/is-suit-element.d.ts +9 -0
- package/types/core/selection/style/api/toggle/toggle-css.d.ts +11 -0
- package/types/core/selection/style/api/toggle/toggle-ordered-list.d.ts +11 -0
- package/types/core/selection/style/api/{toggle-styles.d.ts → toggle-commit-styles.d.ts} +1 -3
- package/types/core/selection/style/api/{post-process-list-element.d.ts → wrap-and-commit-style.d.ts} +3 -3
- package/types/core/selection/style/api/wrap-ordered-list.d.ts +12 -0
- package/types/core/selection/style/apply-style.d.ts +1 -4
- package/types/core/selection/style/commit-style.d.ts +7 -0
- package/types/core/storage/engines/local-storage-provider.d.ts +3 -3
- package/types/core/storage/engines/memory-storage-provider.d.ts +3 -3
- package/types/core/storage/storage.d.ts +3 -3
- package/types/core/ui/button/button/button.d.ts +3 -3
- package/types/core/ui/form/form.d.ts +1 -0
- package/types/core/ui/form/inputs/area/area.d.ts +7 -1
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +9 -3
- package/types/core/ui/helpers/buttons.d.ts +2 -2
- package/types/core/ui/icon.d.ts +1 -1
- package/types/core/ui/index.d.ts +1 -3
- package/types/core/ui/list/group.d.ts +2 -1
- package/types/core/ui/list/index.d.ts +9 -0
- package/types/core/ui/{separator.d.ts → list/separator.d.ts} +1 -1
- package/types/core/ui/list/spacer.d.ts +9 -0
- package/types/core/ui/popup/popup.d.ts +2 -1
- package/types/core/view/view-with-toolbar.d.ts +4 -2
- package/types/jodit.d.ts +6 -6
- package/types/modules/file-browser/file-browser.d.ts +3 -2
- package/types/modules/file-browser/listeners/native-listeners.d.ts +5 -1
- package/types/modules/file-browser/ui/files/files.d.ts +10 -0
- package/types/modules/file-browser/ui/index.d.ts +7 -0
- package/types/modules/file-browser/ui/tree/tree.d.ts +10 -0
- package/types/modules/status-bar/status-bar.d.ts +6 -1
- package/types/modules/table.d.ts +2 -2
- package/types/modules/toolbar/button/button.d.ts +1 -1
- package/types/modules/toolbar/collection/collection.d.ts +5 -2
- package/types/modules/toolbar/collection/editor-collection.d.ts +9 -1
- package/types/modules/widget/tabs/tabs.d.ts +2 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +4 -0
- package/types/plugins/ordered-list.d.ts +8 -1
- package/types/plugins/powered-by-jodit.d.ts +12 -0
- package/types/plugins/source/const.d.ts +6 -0
- package/types/plugins/source/editor/engines/ace.d.ts +1 -0
- package/types/plugins/source/source.d.ts +1 -0
- package/types/styles/icons/index.d.ts +2 -1
- package/types/types/storage.d.ts +3 -3
- package/types/types/{ajax.d.ts → types/ajax.d.ts} +0 -1
- package/types/types/{async.d.ts → types/async.d.ts} +0 -0
- package/types/types/{context.d.ts → types/context.d.ts} +0 -0
- package/types/types/{core.ts → types/core.ts} +0 -0
- package/types/types/{create.d.ts → types/create.d.ts} +0 -0
- package/types/types/{dialog.d.ts → types/dialog.d.ts} +0 -0
- package/types/types/{events.d.ts → types/events.d.ts} +0 -0
- package/types/types/{file-browser.d.ts → types/file-browser.d.ts} +13 -1
- package/types/types/{form.d.ts → types/form.d.ts} +0 -0
- package/types/types/{index.d.ts → types/index.d.ts} +0 -0
- package/types/types/{jodit.d.ts → types/jodit.d.ts} +4 -1
- package/types/types/{observe.d.ts → types/observe.d.ts} +0 -0
- package/types/types/{plugin.d.ts → types/plugin.d.ts} +0 -0
- package/types/types/{popup.d.ts → types/popup.d.ts} +1 -0
- package/types/types/{select.d.ts → types/select.d.ts} +2 -0
- package/types/types/{source.d.ts → types/source.d.ts} +0 -0
- package/types/types/{storage.ts → types/storage.ts} +3 -3
- package/types/types/{style.d.ts → types/style.d.ts} +8 -0
- package/types/types/{toolbar.d.ts → types/toolbar.d.ts} +9 -2
- package/types/types/{traits.d.ts → types/traits.d.ts} +0 -0
- package/types/types/{types.d.ts → types/types.d.ts} +1 -1
- package/types/types/{ui.d.ts → types/ui.d.ts} +22 -4
- package/types/types/{uploader.d.ts → types/uploader.d.ts} +0 -0
- package/types/types/{view.d.ts → types/view.d.ts} +1 -0
- package/src/core/selection/style/api/post-process-list-element.ts +0 -33
- package/src/core/selection/style/api/toggle-styles.ts +0 -74
- package/types/modules/file-browser/consts.d.ts +0 -8
package/CHANGELOG.MD
CHANGED
|
@@ -9,6 +9,161 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 3.10.1
|
|
13
|
+
|
|
14
|
+
#### :boom: Breaking Change
|
|
15
|
+
|
|
16
|
+
- Update `TypeScript@4.5.2`
|
|
17
|
+
- In `IJodit.getEditorValue` added second argument for using with `afterGetValueFromEditor` event.
|
|
18
|
+
You can see example in `source` plugin.
|
|
19
|
+
- In UIButton `state.status` changed to `state.variant`
|
|
20
|
+
- `beforeClose` event can prevent closing the dialog
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
const dialog = new Jodit.modules.Dialog();
|
|
24
|
+
dialog.setContent('Hello world!').open();
|
|
25
|
+
dialog.e.on('beforeClose', () => confirm('Are you sure?'));
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### :bug: Bug Fix
|
|
29
|
+
|
|
30
|
+
- fix: Proxy blur event to parent triggered on the ACE editor
|
|
31
|
+
|
|
32
|
+
## 3.9.5
|
|
33
|
+
|
|
34
|
+
#### :rocket: New Feature
|
|
35
|
+
|
|
36
|
+
- [Feature request: Open the inline toolbar without having to highlight text. #600](https://github.com/xdan/jodit/issues/600)
|
|
37
|
+
Allow open inline toolbar. This feature is implemented on the basis of the `inline-popup` plugin, a setting has been
|
|
38
|
+
added to it: `popup.toolbar`, which lists the buttons that will be shown in such a toolbar. Added the `showInline`
|
|
39
|
+
method to the `ToolbarEditorCollection` itself:
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
const editor = Jodit.make('#editor', {
|
|
43
|
+
preset: 'inline',
|
|
44
|
+
popup: {
|
|
45
|
+
toolbar: Jodit.atom(['bold', 'italic', 'image'])
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
editor.s.focus();
|
|
49
|
+
|
|
50
|
+
editor.toolbar.showInline();
|
|
51
|
+
// or
|
|
52
|
+
editor.e.fire('showInlineToolbar');
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Also added `ToolbarCollection.hide` and `ToolbarCollection.show` methods.
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
const editor = Jodit.make('#editor');
|
|
59
|
+
editor.toolbar.hide();
|
|
60
|
+
editor.toolbar.show();
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- Allow use prototype as component name
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
console.log(Jodit.modules.UIButton.getFullElName('element')); // jodit-ui-button__element
|
|
67
|
+
console.log(Jodit.modules.UIButton.componentName); // jodit-ui-button
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- [Remember last opened folder with FileBrowser #675](https://github.com/xdan/jodit/issues/675)
|
|
71
|
+
Boolean option `filebrowser.saveStateInStorage` split to dictionary:
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
interface IFileBrowserOptions
|
|
75
|
+
|
|
76
|
+
:
|
|
77
|
+
{
|
|
78
|
+
}
|
|
79
|
+
saveStateInStorage: false | {
|
|
80
|
+
storeLastOpenedFolder? : boolean;
|
|
81
|
+
storeView? : boolean;
|
|
82
|
+
storeSortBy? : boolean;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
By default:
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
{
|
|
91
|
+
saveStateInStorage: {
|
|
92
|
+
storeLastOpenedFolder: true,
|
|
93
|
+
storeView
|
|
94
|
+
:
|
|
95
|
+
true,
|
|
96
|
+
storeSortBy
|
|
97
|
+
:
|
|
98
|
+
true
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Disable it:
|
|
104
|
+
|
|
105
|
+
```js
|
|
106
|
+
Jodit.make('#editor', {
|
|
107
|
+
filebrowser: {
|
|
108
|
+
saveStateInStorage: false
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// or
|
|
113
|
+
|
|
114
|
+
Jodit.make('#editor', {
|
|
115
|
+
filebrowser: {
|
|
116
|
+
saveStateInStorage: {
|
|
117
|
+
storeLastOpenedFolder: false
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- [Spacer in Button Toolbar](https://github.com/xdan/jodit/issues/713)
|
|
124
|
+
In addition to the `|` metacharacters and `\n` which stand for separator and newline, the `---` metacharacter has
|
|
125
|
+
appeared, which allows you to add a spacer element which pushes all buttons behind the spacer to the right side of the
|
|
126
|
+
toolbar and creates space in the middle.
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
Jodit.make('#editor', {
|
|
130
|
+
buttons: [
|
|
131
|
+
'source',
|
|
132
|
+
'bold',
|
|
133
|
+
'|',
|
|
134
|
+
'---',
|
|
135
|
+
'|',
|
|
136
|
+
'brush',
|
|
137
|
+
'about',
|
|
138
|
+
'\n',
|
|
139
|
+
'italic'
|
|
140
|
+
]
|
|
141
|
+
});
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## 3.9.4
|
|
145
|
+
|
|
146
|
+
#### :rocket: New Feature
|
|
147
|
+
|
|
148
|
+
- Changed style resize rectangle for resize image or table
|
|
149
|
+
- Added link `POWERED BY JODIT` in statusbar
|
|
150
|
+
- Changed icon for resize handle in the bottom right corner
|
|
151
|
+
|
|
152
|
+
#### :bug: Bug Fix
|
|
153
|
+
|
|
154
|
+
- Fixed popup color for dark theme
|
|
155
|
+
- [Change html tags when list style on/off #738](https://github.com/xdan/jodit/issues/738)
|
|
156
|
+
- [order list/unorder list in source view #732](https://github.com/xdan/jodit/issues/732)
|
|
157
|
+
- [dots supplementary buttons shown incorrectly #692](https://github.com/xdan/jodit/issues/692)
|
|
158
|
+
- [Jodit adds unexpected <span> tag when user lefts cursor inside <script> tag #687](https://github.com/xdan/jodit/issues/687)
|
|
159
|
+
|
|
160
|
+
## 3.9.3
|
|
161
|
+
|
|
162
|
+
#### :boom: Breaking Change
|
|
163
|
+
|
|
164
|
+
- The style `table-layout: fixed` has been removed from tables. When inserting a table, the width of the columns is
|
|
165
|
+
immediately set for it.
|
|
166
|
+
|
|
12
167
|
## 3.9.1
|
|
13
168
|
|
|
14
169
|
#### :boom: Breaking Change
|
|
@@ -45,7 +200,8 @@ await new Ajax(editor, {
|
|
|
45
200
|
url: 'index.php'
|
|
46
201
|
})
|
|
47
202
|
.send()˚
|
|
48
|
-
|
|
203
|
+
.
|
|
204
|
+
then(resp => resp.json()); // {success: true, data: ...}
|
|
49
205
|
```
|
|
50
206
|
|
|
51
207
|
- In `.npmignore` added:
|
|
@@ -99,7 +255,8 @@ while (!next2.done) {
|
|
|
99
255
|
|
|
100
256
|
#### :house: Internal
|
|
101
257
|
|
|
102
|
-
- The build system is divided into modules and is now located in the 'build-system' folder, the `src/utils` folder has
|
|
258
|
+
- The build system is divided into modules and is now located in the 'build-system' folder, the `src/utils` folder has
|
|
259
|
+
been moved to it.
|
|
103
260
|
|
|
104
261
|
#### :bug: Bug Fix
|
|
105
262
|
|
|
@@ -208,7 +365,8 @@ Dom.isNode(editor.ed.body); // true
|
|
|
208
365
|
#### :rocket: New Feature
|
|
209
366
|
|
|
210
367
|
- Added `KeyArrowOutside`, allowing to go outside an inline element if there is no other element after that.
|
|
211
|
-
- Dictionary of variable values in css, a complete list can be found
|
|
368
|
+
- Dictionary of variable values in css, a complete list can be found
|
|
369
|
+
here https://github.com/xdan/jodit/blob/master/src/styles/variables.less#L25
|
|
212
370
|
```js
|
|
213
371
|
const editor = Jodit.make('#editor', {
|
|
214
372
|
styleValues: {
|
|
@@ -323,12 +481,12 @@ jodit.e.fire('someAsyncLoadedPluginEvent', test => {
|
|
|
323
481
|
|
|
324
482
|
#### :rocket: New Feature
|
|
325
483
|
|
|
326
|
-
- Added `cursorAfterAutofocus=end` option inside `autofocus` plugin.
|
|
327
|
-
|
|
484
|
+
- Added `cursorAfterAutofocus=end` option inside `autofocus` plugin. Allow change default autofocus position. Possible
|
|
485
|
+
values `start`, `end`.
|
|
328
486
|
[autofocus plugin should focus on the end of the text #649](https://github.com/xdan/jodit/issues/649)
|
|
329
487
|
|
|
330
|
-
- Added `saveSelectionOnBlur=true` option inside `autofocus` plugin.
|
|
331
|
-
|
|
488
|
+
- Added `saveSelectionOnBlur=true` option inside `autofocus` plugin. Allow restore position after editor has focus after
|
|
489
|
+
blur.
|
|
332
490
|
|
|
333
491
|
#### :house: Internal
|
|
334
492
|
|
|
@@ -337,8 +495,8 @@ jodit.e.fire('someAsyncLoadedPluginEvent', test => {
|
|
|
337
495
|
#### :boom: Breaking Change
|
|
338
496
|
|
|
339
497
|
- The `Dom`.`wrap` method changed signature - instead IJodit call with ICreate.
|
|
340
|
-
- The `Select`.`restore` method is called with no arguments. It finds the range using the data attribute selector.
|
|
341
|
-
|
|
498
|
+
- The `Select`.`restore` method is called with no arguments. It finds the range using the data attribute selector. In
|
|
499
|
+
the `Select`.`save` method added `silent=false` argument.
|
|
342
500
|
|
|
343
501
|
Earlier
|
|
344
502
|
|
|
@@ -403,9 +561,8 @@ editor.s.restore();
|
|
|
403
561
|
|
|
404
562
|
#### :rocket: New Feature
|
|
405
563
|
|
|
406
|
-
- Added the ability to open a file browser and any dialog in a new window.
|
|
407
|
-
|
|
408
|
-
For example, this can be done so that the file browser opens in a separate popup window.
|
|
564
|
+
- Added the ability to open a file browser and any dialog in a new window. To do this, you need to define
|
|
565
|
+
the `ownerWindow` field. For example, this can be done so that the file browser opens in a separate popup window.
|
|
409
566
|
|
|
410
567
|
```js
|
|
411
568
|
const editor = Jodit.make('#editor', {
|
|
@@ -459,8 +616,8 @@ editor.e.on('getInstanceFileBrowser', options => {
|
|
|
459
616
|
|
|
460
617
|
#### :boom: Breaking Change
|
|
461
618
|
|
|
462
|
-
- Removed options: `useIframeResizer`, `useImgResizer`, `useTableResizer` from `resizer` plugin.
|
|
463
|
-
|
|
619
|
+
- Removed options: `useIframeResizer`, `useImgResizer`, `useTableResizer` from `resizer` plugin. Instead,
|
|
620
|
+
added `allowResizeTags`.
|
|
464
621
|
|
|
465
622
|
```js
|
|
466
623
|
Config.prototype.allowResizeTags = ['img', 'iframe', 'table', 'jodit'];
|
|
@@ -573,8 +730,7 @@ class UIBtn extends UIElement {
|
|
|
573
730
|
return button;
|
|
574
731
|
}
|
|
575
732
|
|
|
576
|
-
@autobind
|
|
577
|
-
onClick() {
|
|
733
|
+
@autobind onClick() {
|
|
578
734
|
alert('click');
|
|
579
735
|
}
|
|
580
736
|
}
|
|
@@ -590,8 +746,7 @@ class UIBtn extends UIElement {
|
|
|
590
746
|
return `<button class="&__button" style="color:red"></button>`;
|
|
591
747
|
}
|
|
592
748
|
|
|
593
|
-
@watch('container:click')
|
|
594
|
-
onClick() {
|
|
749
|
+
@watch('container:click') onClick() {
|
|
595
750
|
alert('click');
|
|
596
751
|
}
|
|
597
752
|
}
|
|
@@ -673,13 +828,15 @@ console.log(item.options); // {some: false}
|
|
|
673
828
|
|
|
674
829
|
- [Clear formatting control does not clear all styles (keeps underline and strikethrough) #575](https://github.com/xdan/jodit/issues/575)
|
|
675
830
|
- [Reset in size change not rescaling image #568](https://github.com/xdan/jodit/issues/568)
|
|
676
|
-
- [Backspace in beginning of a
|
|
831
|
+
- [Backspace in beginning of a _
|
|
832
|
+
styled_ line does not affect the line positioning #567](https://github.com/xdan/jodit/issues/567)
|
|
677
833
|
- [Table cell elements are always left-aligned #550](https://github.com/xdan/jodit/issues/550)
|
|
678
834
|
- [editor.destruct throws error #543](https://github.com/xdan/jodit/issues/543)
|
|
679
835
|
- [How I can get Iframe without parent element <jodit>...</jodit> #540](https://github.com/xdan/jodit/issues/540)
|
|
680
836
|
- [Layout bug and drag&drop image loading #536](https://github.com/xdan/jodit/issues/536)
|
|
681
837
|
- [Popups are not showing at all on Legacy Edge #531](https://github.com/xdan/jodit/issues/531)
|
|
682
|
-
- Fixed a bug when the search bar was shown in the scrolling editor, the editor was scrolled up. And the search box was
|
|
838
|
+
- Fixed a bug when the search bar was shown in the scrolling editor, the editor was scrolled up. And the search box was
|
|
839
|
+
not in sticky mode.
|
|
683
840
|
|
|
684
841
|
#### :rocket: New Feature
|
|
685
842
|
|
|
@@ -704,16 +861,18 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
|
|
|
704
861
|
|
|
705
862
|
##### New options in `link.plugin`
|
|
706
863
|
|
|
707
|
-
- @property {"input"|"select"|""} link.modeClassName="input" Use an input text to ask the classname or a select or not
|
|
864
|
+
- @property {"input"|"select"|""} link.modeClassName="input" Use an input text to ask the classname or a select or not
|
|
865
|
+
ask
|
|
708
866
|
- @property {boolean} link.selectMultipleClassName=true Allow multiple choises (to use with modeClassName="select")
|
|
709
867
|
- @property {number} link.selectSizeClassName=3 The size of the select (to use with modeClassName="select")
|
|
710
|
-
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
868
|
+
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
869
|
+
modeClassName="select")
|
|
711
870
|
- ex: [
|
|
712
|
-
-
|
|
713
|
-
-
|
|
714
|
-
-
|
|
715
|
-
-
|
|
716
|
-
-
|
|
871
|
+
- { value: "", text: "" },
|
|
872
|
+
- { value: "val1", text: "text1" },
|
|
873
|
+
- { value: "val2", text: "text2" },
|
|
874
|
+
- { value: "val3", text: "text3" }
|
|
875
|
+
- ]
|
|
717
876
|
PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
|
|
718
877
|
|
|
719
878
|
##### New option `statusbar: boolean = true`
|
|
@@ -731,10 +890,10 @@ console.log(editor.statusbar.isShown); // true
|
|
|
731
890
|
|
|
732
891
|
##### Buttons groups
|
|
733
892
|
|
|
734
|
-
The `buttons` option can contain named groups of buttons.
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
893
|
+
The `buttons` option can contain named groups of buttons. Each plugin decides which button belongs to which group. Thus,
|
|
894
|
+
if you turn off the plugin, then its buttons will not be shown either. Available
|
|
895
|
+
groups: ["source", "font-style", "script", "list", "indent", "font", "color", "media", "state", "clipboard", "insert", "history", "search", "other", "info"]
|
|
896
|
+
;
|
|
738
897
|
|
|
739
898
|
```js
|
|
740
899
|
const editor = Jodit.make('#editor', {
|
|
@@ -762,9 +921,8 @@ Jodit.plugins.add('somePlugin', function (editor) {
|
|
|
762
921
|
|
|
763
922
|
##### Hotkeys for BackSpace and Delete and remove part of text
|
|
764
923
|
|
|
765
|
-
Added hotkey settings for Delete and Backspace buttons.
|
|
766
|
-
|
|
767
|
-
Issue: [https://github.com/xdan/jodit/issues/532](https://github.com/xdan/jodit/issues/532)
|
|
924
|
+
Added hotkey settings for Delete and Backspace buttons. And added hotkey `ctrl+backspace` for removing left part of
|
|
925
|
+
text. Issue: [https://github.com/xdan/jodit/issues/532](https://github.com/xdan/jodit/issues/532)
|
|
768
926
|
|
|
769
927
|
```js
|
|
770
928
|
Jodit.make('#editor', {
|
|
@@ -806,10 +964,9 @@ editor.events
|
|
|
806
964
|
|
|
807
965
|
#### :rocket: New Feature
|
|
808
966
|
|
|
809
|
-
Added `extraIcons` option.
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
But for a declarative declaration, you can use this option.
|
|
967
|
+
Added `extraIcons` option. By default, you can only install an icon from the Jodit suite. You can add your icon to the
|
|
968
|
+
set using the `Jodit.modules.Icon.set (name, svg Code)` method. But for a declarative declaration, you can use this
|
|
969
|
+
option.
|
|
813
970
|
|
|
814
971
|
```js
|
|
815
972
|
Jodit.modules.Icon.set('someIcon', '<svg><path.../></svg>');
|
|
@@ -1026,8 +1183,8 @@ https://github.com/xdan/jodit/issues/359
|
|
|
1026
1183
|
### Features
|
|
1027
1184
|
|
|
1028
1185
|
- All `less` variables were replaced to css custom properties for modern browsers.
|
|
1029
|
-
- Added `WrapTextNodes` plugin - it wrap all alone text node(or inline elements) inside `options.enter` element.
|
|
1030
|
-
|
|
1186
|
+
- Added `WrapTextNodes` plugin - it wrap all alone text node(or inline elements) inside `options.enter` element. You can
|
|
1187
|
+
disable this behaviour:
|
|
1031
1188
|
|
|
1032
1189
|
```js
|
|
1033
1190
|
const editor = Jodit.make('#editor', {
|
|
@@ -1060,8 +1217,7 @@ var editor = new Jodit(root.getElementById('edit'), {
|
|
|
1060
1217
|
editor.value = '<p>start</p>';
|
|
1061
1218
|
```
|
|
1062
1219
|
|
|
1063
|
-
- From `NativeEvent.on` method was removed `selector` argument. It was `jQuery.live` style.
|
|
1064
|
-
Example:
|
|
1220
|
+
- From `NativeEvent.on` method was removed `selector` argument. It was `jQuery.live` style. Example:
|
|
1065
1221
|
|
|
1066
1222
|
```html
|
|
1067
1223
|
<div class="test">
|
|
@@ -1098,8 +1254,7 @@ const editor = Jodit.make('#editor');
|
|
|
1098
1254
|
editor.s.applyStyle({ color: 'red' }); // will add to all selection text - red color
|
|
1099
1255
|
```
|
|
1100
1256
|
|
|
1101
|
-
- `FileBrowser`, `Dialog` etc. modules which extend `View` has only one argument in the constructor - options.
|
|
1102
|
-
Before:
|
|
1257
|
+
- `FileBrowser`, `Dialog` etc. modules which extend `View` has only one argument in the constructor - options. Before:
|
|
1103
1258
|
|
|
1104
1259
|
```js
|
|
1105
1260
|
const editor = Jodit.make('#editor');
|
|
@@ -1137,8 +1292,7 @@ editor.e.on('beforeDestruct', () => {
|
|
|
1137
1292
|
});
|
|
1138
1293
|
```
|
|
1139
1294
|
|
|
1140
|
-
- Split `table` plugin on `select-cells` and `resize-cells` plugins. `useTableProcessor` was removed.
|
|
1141
|
-
Instead, use
|
|
1295
|
+
- Split `table` plugin on `select-cells` and `resize-cells` plugins. `useTableProcessor` was removed. Instead, use
|
|
1142
1296
|
|
|
1143
1297
|
```js
|
|
1144
1298
|
Jodit.make('#editor', {
|
|
@@ -1154,8 +1308,8 @@ Jodit.make('#editor', {
|
|
|
1154
1308
|
|
|
1155
1309
|
- All `less` files were moved near with TS. Class naming was changed closer to BEM.
|
|
1156
1310
|
- Removed `PopupList` and `Popup`. Instead, use only `PopupMenu`.
|
|
1157
|
-
- Added `ui.button` and `ui.list` for working with buttons. `toolbar.button` extends `ui.button`.
|
|
1158
|
-
|
|
1311
|
+
- Added `ui.button` and `ui.list` for working with buttons. `toolbar.button` extends `ui.button`. UIButton - is
|
|
1312
|
+
reactive:
|
|
1159
1313
|
|
|
1160
1314
|
```js
|
|
1161
1315
|
const button = new UIButton();
|
|
@@ -1173,8 +1327,7 @@ button
|
|
|
1173
1327
|
.appendTo(document.body); // will append it inside the body
|
|
1174
1328
|
```
|
|
1175
1329
|
|
|
1176
|
-
- In `tsconfig` added decorators supports.
|
|
1177
|
-
Methods that need binding binds with `@autobind` decorator.
|
|
1330
|
+
- In `tsconfig` added decorators supports. Methods that need binding binds with `@autobind` decorator.
|
|
1178
1331
|
- Added `watch` decorator.
|
|
1179
1332
|
- All filenames were renamed to kebab-case.
|
|
1180
1333
|
- Added short aliases for. Can be used as chain - `this.j.e.on`
|
|
@@ -1260,7 +1413,8 @@ const editor = getJodit({
|
|
|
1260
1413
|
});
|
|
1261
1414
|
```
|
|
1262
1415
|
|
|
1263
|
-
- Added deprecated mechanism. Some methods will not be removed and only will be marked as deprecated until major
|
|
1416
|
+
- Added deprecated mechanism. Some methods will not be removed and only will be marked as deprecated until major
|
|
1417
|
+
release. [#330](https://github.com/xdan/jodit/issues/330)
|
|
1264
1418
|
|
|
1265
1419
|
## 3.3.16
|
|
1266
1420
|
|
|
@@ -1294,7 +1448,8 @@ Fixed SPLIT_MODE
|
|
|
1294
1448
|
|
|
1295
1449
|
### Feature
|
|
1296
1450
|
|
|
1297
|
-
Added `editHTMLDocumentMode` in order to allow the user to edit the entire
|
|
1451
|
+
Added `editHTMLDocumentMode` in order to allow the user to edit the entire
|
|
1452
|
+
document [#241](https://github.com/xdan/jodit/issues/241).
|
|
1298
1453
|
|
|
1299
1454
|
Also added `iframeTitle` and `iframeDoctype` options
|
|
1300
1455
|
|
|
@@ -1348,8 +1503,8 @@ Fixed bug with ProgressBar - it simply does not work(
|
|
|
1348
1503
|
|
|
1349
1504
|
### Feature
|
|
1350
1505
|
|
|
1351
|
-
Source plugin was separated on several classes. Now you can choose SourceEditor
|
|
1352
|
-
|
|
1506
|
+
Source plugin was separated on several classes. Now you can choose SourceEditor or make
|
|
1507
|
+
yourself (https://github.com/xdan/jodit/issues/242)
|
|
1353
1508
|
|
|
1354
1509
|
> Before
|
|
1355
1510
|
|
|
@@ -1452,6 +1607,7 @@ Inside plugin, you can use several fields:
|
|
|
1452
1607
|
class Emoji {
|
|
1453
1608
|
hasStyle = true; //
|
|
1454
1609
|
requires = ['autocomplete'];
|
|
1610
|
+
|
|
1455
1611
|
init(editor) {
|
|
1456
1612
|
// this code will be execute only after autocomplete.init
|
|
1457
1613
|
}
|
|
@@ -1487,13 +1643,11 @@ extraPlugins option allows appending in editor extra plugins from npm, bower etc
|
|
|
1487
1643
|
|
|
1488
1644
|
### Build System
|
|
1489
1645
|
|
|
1490
|
-
In Build system was added gulp subsystem to build extra plugins.
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
folder (eg `build/plugins/emoji/`).
|
|
1646
|
+
In Build system was added gulp subsystem to build extra plugins. You can make extra plugins like `plugins/example` and
|
|
1647
|
+
after build, this plugin will not be inside `jodit.min.js` file. It will be in separate folder (
|
|
1648
|
+
eg `build/plugins/emoji/`).
|
|
1494
1649
|
|
|
1495
|
-
Also in root you can find `make.js` file for install your plugin
|
|
1496
|
-
in build system.
|
|
1650
|
+
Also in root you can find `make.js` file for install your plugin in build system.
|
|
1497
1651
|
|
|
1498
1652
|
---
|
|
1499
1653
|
|
|
@@ -1516,8 +1670,8 @@ var editor = new Jodir('.editor', {
|
|
|
1516
1670
|
|
|
1517
1671
|
- Added `useIframeResizer` option for resize IFRAME tag
|
|
1518
1672
|

|
|
1519
|
-
- Added `offsetTopForAssix` option.
|
|
1520
|
-
|
|
1673
|
+
- Added `offsetTopForAssix` option. For example, in Joomla, the top menu bar closes Jodit toolbar when scrolling.
|
|
1674
|
+
Therefore, it is necessary to move the toolbar Jodit by this amount
|
|
1521
1675
|
|
|
1522
1676
|
```javascript
|
|
1523
1677
|
var editor = new Jodit('#editor', {
|
|
@@ -1536,8 +1690,9 @@ Added `Embed video` button. Added `vimeo` or `youtube` video embeded code.
|
|
|
1536
1690
|
|
|
1537
1691
|
### 2.5.54
|
|
1538
1692
|
|
|
1539
|
-
When you insert text into the editor from another site, all the images are from a remote site. Before Jodit, it was
|
|
1540
|
-
|
|
1693
|
+
When you insert text into the editor from another site, all the images are from a remote site. Before Jodit, it was
|
|
1694
|
+
quite uncomfortable: first I had to download the image from a remote resource, and then upload it to your site, then
|
|
1695
|
+
replace the image in the editor. In 2.5.54 it can be done in 3 clicks
|
|
1541
1696
|
|
|
1542
1697
|

|
|
1543
1698
|
|
|
@@ -1606,7 +1761,8 @@ Jodit.Confirm('Are you sure?', function (yes) {
|
|
|
1606
1761
|
|
|
1607
1762
|
### 2.5.49
|
|
1608
1763
|
|
|
1609
|
-
First step for Mobile-friendly [sizeLG,sizeMD,sizeSM](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#sizeLG) and
|
|
1764
|
+
First step for Mobile-friendly [sizeLG,sizeMD,sizeSM](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#sizeLG) and
|
|
1765
|
+
sets of buttons for different sizes editors.
|
|
1610
1766
|
|
|
1611
1767
|
> `Note`. this is not the width of the device, the width of the editor
|
|
1612
1768
|
|
|
@@ -1733,7 +1889,8 @@ var editor = new Jodit('#some-editor', {
|
|
|
1733
1889
|

|
|
1734
1890
|
|
|
1735
1891
|
- Added [Helper.normalizeColor](http://xdsoft.net/jodit/doc/module-Helper.html#~normalizeColor)
|
|
1736
|
-
- Fixed [Helper.colorToHex](http://xdsoft.net/jodit/doc/module-Helper.html#~colorToHex) now for transparent color it
|
|
1892
|
+
- Fixed [Helper.colorToHex](http://xdsoft.net/jodit/doc/module-Helper.html#~colorToHex) now for transparent color it
|
|
1893
|
+
will return NaN
|
|
1737
1894
|
|
|
1738
1895
|
### 2.5.45
|
|
1739
1896
|
|
|
@@ -1748,7 +1905,8 @@ Fix a few bugs in [JJE](http://xdsoft.net/jodit/#extesions)
|
|
|
1748
1905
|
### 2.5.40
|
|
1749
1906
|
|
|
1750
1907
|
- In [Helper](http://xdsoft.net/jodit/doc/module-Helper.html) module added [isHTML] method. Used plugin `insertHTML`
|
|
1751
|
-
- Added simple plugin `insertHTML` and him option `askBeforePasteHTML` - Ask before paste HTML in WYSIWYG mode. Try
|
|
1908
|
+
- Added simple plugin `insertHTML` and him option `askBeforePasteHTML` - Ask before paste HTML in WYSIWYG mode. Try
|
|
1909
|
+
insert in WYSIWYG mode some HTML source
|
|
1752
1910
|
|
|
1753
1911
|
```javascript
|
|
1754
1912
|
(function ($) {
|
|
@@ -1810,7 +1968,8 @@ Fix [#issue 11](https://github.com/xdan/jodit/issues/11) in `file:` mode CDN Cod
|
|
|
1810
1968
|
|
|
1811
1969
|
### 2.5.37
|
|
1812
1970
|
|
|
1813
|
-
- Fixed bug in [`Beautifier`](http://xdsoft.net/jodit/doc/module-Beautifier.html) plugin. When in `source` mode, start
|
|
1971
|
+
- Fixed bug in [`Beautifier`](http://xdsoft.net/jodit/doc/module-Beautifier.html) plugin. When in `source` mode, start
|
|
1972
|
+
comment enter `<!--` Browser stops responding.
|
|
1814
1973
|
- Added `tiles` and `list` switcher in filebrowser
|
|
1815
1974
|
|
|
1816
1975
|
### 2.5.36
|
|
@@ -1838,8 +1997,10 @@ Jodit.Confirm('Are you sure?', 'Confirm', function (success) {
|
|
|
1838
1997
|
|
|
1839
1998
|
### 2.5.27
|
|
1840
1999
|
|
|
1841
|
-
- Fixed IE11's
|
|
1842
|
-
|
|
2000
|
+
- Fixed IE11's
|
|
2001
|
+
bug [http://xdsoft.net/jodit/doc/module-Jodit.html#comment-2866837441](http://xdsoft.net/jodit/doc/module-Jodit.html#comment-2866837441)
|
|
2002
|
+
- Added [textIcons](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#texticons) options - Use text instead of
|
|
2003
|
+
icons. In IE9 it is default - true [Example](http://xdsoft.net/jodit/#example-text-icons)
|
|
1843
2004
|
|
|
1844
2005
|
```javascript
|
|
1845
2006
|
var editor = new Jodit('#example2_0', {
|
|
@@ -1864,7 +2025,11 @@ var editor = new Jodit('#example2_0', {
|
|
|
1864
2025
|
Dom Module is now compatible with jQuery objects
|
|
1865
2026
|
|
|
1866
2027
|
```javascript
|
|
1867
|
-
var a = jQuery("<a href="
|
|
2028
|
+
var a = jQuery("<a href="
|
|
2029
|
+
#link
|
|
2030
|
+
">Link</a>"
|
|
2031
|
+
)
|
|
2032
|
+
;
|
|
1868
2033
|
jodit.modules.Dom('.selector').append(a);
|
|
1869
2034
|
jodit.modules.Dom(jQuery("#someid")).val();
|
|
1870
2035
|
jodit.modules.Dom("#someid").val();
|
|
@@ -1875,14 +2040,16 @@ But you must remember that Jodit.modules.Dom! = JQuery
|
|
|
1875
2040
|
### 2.5.23
|
|
1876
2041
|
|
|
1877
2042
|
- Added `expand button` In filebrowser
|
|
1878
|
-
- Added [fullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog)
|
|
2043
|
+
- Added [fullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog)
|
|
2044
|
+
and [fullsizeButton](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog) options
|
|
1879
2045
|
|
|
1880
2046
|
### 2.5.20
|
|
1881
2047
|
|
|
1882
2048
|
- Fix [Dom.prev](http://xdsoft.net/jodit/doc/module-Dom.html#prev) method
|
|
1883
2049
|
- Added navigation and select in preview
|
|
1884
2050
|

|
|
1885
|
-
- Added [showSelectButtonInPreview](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2051
|
+
- Added [showSelectButtonInPreview](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2052
|
+
and [showPreviewNavigation](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
1886
2053
|
|
|
1887
2054
|
### 2.5.19
|
|
1888
2055
|
|
|
@@ -1965,7 +2132,9 @@ Added edit button in Image Properties Dialog
|
|
|
1965
2132
|
### 2.5.1
|
|
1966
2133
|
|
|
1967
2134
|
- Dom module was rewritten and was fixed afew bugs
|
|
1968
|
-
- In [OEM and Pro](http://xdsoft.net/jodit/#download)
|
|
2135
|
+
- In [OEM and Pro](http://xdsoft.net/jodit/#download)
|
|
2136
|
+
added [Image Editor module](http://xdsoft.net/jodit/doc/module-ImageEditor.html) resize and crop image. You can
|
|
2137
|
+
try [here](http://xdsoft.net/jodit/)
|
|
1969
2138
|

|
|
1970
2139
|

|
|
1971
2140
|
|
|
@@ -1998,7 +2167,8 @@ Fixed bug with insert `OL` tag and Fixed Dom module work with Text node
|
|
|
1998
2167
|
|
|
1999
2168
|
### 2.4.12
|
|
2000
2169
|
|
|
2001
|
-
Added [toolbarButtonSize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#toolbarbuttonsize) Size of icons in the
|
|
2170
|
+
Added [toolbarButtonSize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#toolbarbuttonsize) Size of icons in the
|
|
2171
|
+
toolbar (can be "small", "middle", "large")
|
|
2002
2172
|
|
|
2003
2173
|
```javascript
|
|
2004
2174
|
var editor = new Jodit('#editor', {
|
|
@@ -2017,9 +2187,11 @@ editor.s.insertNode(node);
|
|
|
2017
2187
|
```
|
|
2018
2188
|
|
|
2019
2189
|
- Added [link](http://xdsoft.net/jodit/doc/module-link.html) plugin. And its options
|
|
2020
|
-
- [processPastedLink](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Wrap inserted link
|
|
2190
|
+
- [processPastedLink](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Wrap inserted link
|
|
2191
|
+
in `<a href="link">link</a>`
|
|
2021
2192
|
- [openLinkDialogAfterPost](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Open Link dialog after post
|
|
2022
|
-
- [removeLinkAfterFormat](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) When the button is pressed to
|
|
2193
|
+
- [removeLinkAfterFormat](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) When the button is pressed to
|
|
2194
|
+
clean format, if it was done on the link is removed like command `unlink`
|
|
2023
2195
|
- Replace format icon
|
|
2024
2196
|
|
|
2025
2197
|
### 2.4.8
|
|
@@ -2028,8 +2200,7 @@ Fixed Base icons [issue](https://gist.github.com/leonderijke/c5cf7c5b2e424c0061d
|
|
|
2028
2200
|
|
|
2029
2201
|
### 2.4.6
|
|
2030
2202
|
|
|
2031
|
-
Fast Fixed in JJE
|
|
2032
|
-
Fixed a lot of bugs in Jodit
|
|
2203
|
+
Fast Fixed in JJE Fixed a lot of bugs in Jodit
|
|
2033
2204
|
|
|
2034
2205
|
### 2.4.1
|
|
2035
2206
|
|
|
@@ -2044,8 +2215,10 @@ Fixed a lot of bugs in Jodit
|
|
|
2044
2215
|
### 2.3.59
|
|
2045
2216
|
|
|
2046
2217
|
- Added [Cookie](http://xdsoft.net/jodit/doc/module-Cookie.html) module
|
|
2047
|
-
- Added [saveModeInCookie](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#savemodeincookie) if it is true that
|
|
2048
|
-
|
|
2218
|
+
- Added [saveModeInCookie](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#savemodeincookie) if it is true that
|
|
2219
|
+
the current mode is saved in a cookie , and is restored after a reload of the page
|
|
2220
|
+
- In Joomla Jodit Editor(JJE) added corresponding option
|
|
2221
|
+
saveModeInCookie [Download Jodit Joomla editor](http://xdsoft.net/jodit/release/joomla.zip)
|
|
2049
2222
|
|
|
2050
2223
|
### 2.3.57
|
|
2051
2224
|
|
|
@@ -2054,20 +2227,26 @@ Fixed a lot of bugs in Jodit
|
|
|
2054
2227
|
|
|
2055
2228
|
### 2.3.53
|
|
2056
2229
|
|
|
2057
|
-
- Added option [cleanHTML.cleanOnPaste](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#cleanhtml) The
|
|
2058
|
-
|
|
2230
|
+
- Added option [cleanHTML.cleanOnPaste](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#cleanhtml) The
|
|
2231
|
+
plugin [cleanHTML](http://xdsoft.net/jodit/doc/module-cleanHTML.html) automatically cleans up content from Microsoft
|
|
2232
|
+
Word and other HTML sources to ensure clean, compliant content that matches the look and feel of the site.
|
|
2233
|
+
- Added [beforePaste](http://xdsoft.net/jodit/doc/module-Jodit.html#~event:beforePaste),[processPaste](http://xdsoft.net/jodit/doc/module-Jodit.html#~event:processPaste),[afterPaste](http://xdsoft.net/jodit/doc/module-Jodit.html#~event:afterPaste)
|
|
2234
|
+
events
|
|
2059
2235
|
|
|
2060
2236
|
### 2.3.49
|
|
2061
2237
|
|
|
2062
|
-
Added [iframeBaseUrl](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframebaseurl) option - Base URL where the
|
|
2238
|
+
Added [iframeBaseUrl](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframebaseurl) option - Base URL where the
|
|
2239
|
+
root directory for [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframe) mode
|
|
2063
2240
|
|
|
2064
2241
|
### 2.3.48
|
|
2065
2242
|
|
|
2066
|
-
Added [spellcheck](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#spellcheck) option specifies whether the editor
|
|
2243
|
+
Added [spellcheck](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#spellcheck) option specifies whether the editor
|
|
2244
|
+
is to have its spelling and grammar checked or not
|
|
2067
2245
|
|
|
2068
2246
|
### 2.3.47
|
|
2069
2247
|
|
|
2070
|
-
Added [removeEmptyBlocks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#removeemptyblocks) option - Remove empty
|
|
2248
|
+
Added [removeEmptyBlocks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#removeemptyblocks) option - Remove empty
|
|
2249
|
+
blocks
|
|
2071
2250
|
|
|
2072
2251
|
```javascript
|
|
2073
2252
|
var editor = new Jodit('#editor', {
|
|
@@ -2088,11 +2267,11 @@ console.log(editor.val()); //''
|
|
|
2088
2267
|
|
|
2089
2268
|
### 2.3.44
|
|
2090
2269
|
|
|
2091
|
-
Added [direction](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#direction) option.
|
|
2092
|
-
|
|
2093
|
-
Allowed values are:
|
|
2270
|
+
Added [direction](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#direction) option. The writing direction of the
|
|
2271
|
+
language which is used to create editor content. Allowed values are:
|
|
2094
2272
|
|
|
2095
|
-
- '' (an empty string) – Indicates that content direction will be the same as either the editor UI direction or the page
|
|
2273
|
+
- '' (an empty string) – Indicates that content direction will be the same as either the editor UI direction or the page
|
|
2274
|
+
element direction.
|
|
2096
2275
|
- 'ltr' – Indicates a Left-To-Right text direction (like in English).
|
|
2097
2276
|
- 'rtl' – Indicates a Right-To-Left text direction (like in Arabic).
|
|
2098
2277
|
|
|
@@ -2102,18 +2281,23 @@ Fixed styles bugs
|
|
|
2102
2281
|
|
|
2103
2282
|
### 2.3.41
|
|
2104
2283
|
|
|
2105
|
-
When [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) === false show 4
|
|
2284
|
+
When [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) === false show 4
|
|
2285
|
+
colums in filelist
|
|
2106
2286
|
|
|
2107
2287
|
### 2.3.40
|
|
2108
2288
|
|
|
2109
|
-
- Added [filebrowser.moveFolder](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2110
|
-
|
|
2111
|
-
- Added [filebrowser.
|
|
2289
|
+
- Added [filebrowser.moveFolder](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2290
|
+
move folder
|
|
2291
|
+
- Added [filebrowser.moveFile](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2292
|
+
move file
|
|
2293
|
+
- Added [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option.
|
|
2294
|
+
Hide/show folders panel in filebrowser
|
|
2112
2295
|
|
|
2113
2296
|
### 2.3.39
|
|
2114
2297
|
|
|
2115
|
-
Fixed [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html) uploader's options bug.
|
|
2116
|
-
|
|
2298
|
+
Fixed [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html) uploader's options bug. Previously , you had to
|
|
2299
|
+
either use a general [Uploader](http://xdsoft.net/jodit/doc/module-Uploader.html) module settings , or override them
|
|
2300
|
+
completely
|
|
2117
2301
|
|
|
2118
2302
|
```javascript
|
|
2119
2303
|
var editor = new Jodit('.redactor', {
|
|
@@ -2176,7 +2360,8 @@ editor.events.fire('toggleFullsize', [true]); // fullsize
|
|
|
2176
2360
|
editor.events.fire('toggleFullsize', [false]); // usual mode
|
|
2177
2361
|
```
|
|
2178
2362
|
|
|
2179
|
-
- Added [globalFullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#globalFullsize) (default `true`) if true,
|
|
2363
|
+
- Added [globalFullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#globalFullsize) (default `true`) if true,
|
|
2364
|
+
after `fullsize` - all parents element get `jodit_fullsize_box` class (z-index: 100000 !important;)
|
|
2180
2365
|
- Fixed focus bug
|
|
2181
2366
|
|
|
2182
2367
|
### 2.3.35
|
|
@@ -2195,32 +2380,37 @@ Jodit.modules.Dom('.idclass').css('margin-top'); //now it returns int `20`
|
|
|
2195
2380
|
|
|
2196
2381
|
### 2.3.33
|
|
2197
2382
|
|
|
2198
|
-
- Fixed placeholder style. Placeholder placed in a separate
|
|
2383
|
+
- Fixed placeholder style. Placeholder placed in a separate
|
|
2384
|
+
module [Placeholder](http://xdsoft.net/jodit/doc/module-Placeholder.html)
|
|
2199
2385
|
- Added [showPlaceholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#showplaceholder) option
|
|
2200
2386
|
- Added [useInputsPlaceholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#useinputsplaceholder) option
|
|
2201
2387
|
- Added [placeholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#placeholder) option
|
|
2202
2388
|
|
|
2203
2389
|
### 2.3.32
|
|
2204
2390
|
|
|
2205
|
-
Added [uploader.data](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#uploader) option. Data to be sent to the
|
|
2391
|
+
Added [uploader.data](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#uploader) option. Data to be sent to the
|
|
2392
|
+
server like POST parameters
|
|
2206
2393
|
|
|
2207
2394
|
### 2.3.31
|
|
2208
2395
|
|
|
2209
|
-
Added [editorCssClass](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#editorcssclass) option - Class name that
|
|
2210
|
-
Fixed internacionalization
|
|
2396
|
+
Added [editorCssClass](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#editorcssclass) option - Class name that
|
|
2397
|
+
can be appended to the editor Fixed internacionalization
|
|
2211
2398
|
|
|
2212
2399
|
### 2.3.30
|
|
2213
2400
|
|
|
2214
|
-
Added [triggerChangeEvent](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#triggerchangeevent) option
|
|
2215
|
-
|
|
2401
|
+
Added [triggerChangeEvent](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#triggerchangeevent) option Fixed
|
|
2402
|
+
uploader's options - When the uploader is not configured, the editor still displays images upload button
|
|
2216
2403
|
|
|
2217
2404
|
### 2.3.29
|
|
2218
2405
|
|
|
2219
|
-
Add [Dom.defaultAjaxOptions.async](http://xdsoft.net/jodit/doc/module-Dom.html#.__.defaultAjaxOptions) By default, all
|
|
2406
|
+
Add [Dom.defaultAjaxOptions.async](http://xdsoft.net/jodit/doc/module-Dom.html#.__.defaultAjaxOptions) By default, all
|
|
2407
|
+
requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this
|
|
2408
|
+
option to false
|
|
2220
2409
|
|
|
2221
2410
|
### 2.3.28
|
|
2222
2411
|
|
|
2223
|
-
Added `headers` option in {@link module:FileBrowser|FileBrowser} and {@link module:Uploader|Uploader}. But primarily in
|
|
2412
|
+
Added `headers` option in {@link module:FileBrowser|FileBrowser} and {@link module:Uploader|Uploader}. But primarily in
|
|
2413
|
+
{@link module:Dom|Dom}
|
|
2224
2414
|
|
|
2225
2415
|
```javascript
|
|
2226
2416
|
var token = document
|
|
@@ -2268,9 +2458,8 @@ Fixed [#issues1](https://github.com/xdan/jodit/issues/1)
|
|
|
2268
2458
|
|
|
2269
2459
|
### 2.3.24
|
|
2270
2460
|
|
|
2271
|
-
Fixed dialog's module when was opened Promt window, after Enter submit the form and the page reloaded.
|
|
2272
|
-
|
|
2273
|
-
Update [Jodit.i18n](http://xdsoft.net/jodit/doc/module-Jodit.html#.i18n) method. Now it can be used staticly
|
|
2461
|
+
Fixed dialog's module when was opened Promt window, after Enter submit the form and the page reloaded. Fixed connector's
|
|
2462
|
+
bugs Update [Jodit.i18n](http://xdsoft.net/jodit/doc/module-Jodit.html#.i18n) method. Now it can be used staticly
|
|
2274
2463
|
|
|
2275
2464
|
```javascript
|
|
2276
2465
|
var editor = new Jodit('#redactor', {
|
|
@@ -2311,8 +2500,8 @@ Jodit.Alert('Hello world!!!');
|
|
|
2311
2500
|
|
|
2312
2501
|
### 2.3.20
|
|
2313
2502
|
|
|
2314
|
-
Fixed dialog's module zIndex manage.
|
|
2315
|
-
|
|
2503
|
+
Fixed dialog's module zIndex manage. Fixed [Dom.css](http://xdsoft.net/jodit/doc/module-Dom.html#~css) method bug. That
|
|
2504
|
+
example has not worked.
|
|
2316
2505
|
|
|
2317
2506
|
```javascript
|
|
2318
2507
|
Jodit.modules.Dom('.someelement').css('z-index', 1000);
|
|
@@ -2320,12 +2509,15 @@ Jodit.modules.Dom('.someelement').css('z-index', 1000);
|
|
|
2320
2509
|
|
|
2321
2510
|
### 2.3.19
|
|
2322
2511
|
|
|
2323
|
-
Fixed bug in Uploader module when `http://sitename.net/jodit///files/fg.jpg` was
|
|
2512
|
+
Fixed bug in Uploader module when `http://sitename.net/jodit///files/fg.jpg` was
|
|
2513
|
+
replaced `http:/sitename.net/jodit/files/fg.jpg`
|
|
2324
2514
|
|
|
2325
2515
|
### 2.3.18
|
|
2326
2516
|
|
|
2327
|
-
Added `afterInsertImage` event - triggered after image was
|
|
2328
|
-
|
|
2517
|
+
Added `afterInsertImage` event - triggered after image was
|
|
2518
|
+
inserted [selection.insertImage](http://xdsoft.net/jodit/doc/module-Selection.html#-insertImage__anchor). This method
|
|
2519
|
+
can execute from [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html)
|
|
2520
|
+
or [Uploader](http://xdsoft.net/jodit/doc/module-Uploader.html)
|
|
2329
2521
|
|
|
2330
2522
|
```javascript
|
|
2331
2523
|
var editor = new Jodit('#redactor');
|
|
@@ -2379,7 +2571,8 @@ Added copy-paste support by clipboard image. [Try](http://xdsoft.net/jodit) past
|
|
|
2379
2571
|
|
|
2380
2572
|
### 2.2.4
|
|
2381
2573
|
|
|
2382
|
-
Added the ability in the file browser to obtain data about the file not as a string and as an object with parameters
|
|
2574
|
+
Added the ability in the file browser to obtain data about the file not as a string and as an object with parameters
|
|
2575
|
+
{file: 'name.jpg', thumb: '\_thumbs/name.jpg'}
|
|
2383
2576
|
|
|
2384
2577
|
### 2.2.3
|
|
2385
2578
|
|
|
@@ -2391,8 +2584,15 @@ Fixed BACKSPACE entering behavior. And Fixed ie10 support
|
|
|
2391
2584
|
|
|
2392
2585
|
### 2.2.0
|
|
2393
2586
|
|
|
2394
|
-
Added [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframe)
|
|
2395
|
-
|
|
2587
|
+
Added [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframe)
|
|
2588
|
+
, [iframeStyle](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeStyle)
|
|
2589
|
+
, [iframeIncludeJoditStyle](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeIncludeJoditStyle)
|
|
2590
|
+
, [iframeCSSLinks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeCSSLinks)
|
|
2591
|
+
, [width](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.width)
|
|
2592
|
+
, [height](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.height)
|
|
2593
|
+
, [minHeight](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.minHeight).
|
|
2594
|
+
`iframe` by default false. When this option is enabled, the editor's content will be placed in an iframe and isolated
|
|
2595
|
+
from the rest of the page.
|
|
2396
2596
|
`width` and `height` you can set size fot editor
|
|
2397
2597
|
|
|
2398
2598
|
### 2.1.0
|
|
@@ -2401,7 +2601,8 @@ Added internationalization. Read more http://xdsoft.net/jodit/doc/Jodit.defaultO
|
|
|
2401
2601
|
|
|
2402
2602
|
### 2.0.9
|
|
2403
2603
|
|
|
2404
|
-
Added Split mode. Added [useSplitMode](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.useSplitMode) options (
|
|
2604
|
+
Added Split mode. Added [useSplitMode](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.useSplitMode) options (
|
|
2605
|
+
default true) Example [here](http://xdsoft.net/jodit/#splitmode)
|
|
2405
2606
|
|
|
2406
2607
|
### 2.0.8
|
|
2407
2608
|
|
|
@@ -2421,7 +2622,8 @@ Fixed bug in filebrowser
|
|
|
2421
2622
|
|
|
2422
2623
|
### 1.2.0
|
|
2423
2624
|
|
|
2424
|
-
Fixed bug when [selection.insertHTML](http://xdsoft.net/jodit/doc/module-Selection.html#-inner-insertHTML__anchor)
|
|
2625
|
+
Fixed bug when [selection.insertHTML](http://xdsoft.net/jodit/doc/module-Selection.html#-inner-insertHTML__anchor)
|
|
2626
|
+
doesn't work without focus
|
|
2425
2627
|
|
|
2426
2628
|
### 1.1.0
|
|
2427
2629
|
|