jodit 3.9.3 → 3.10.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/.idea/workspace.xml +306 -295
- package/CHANGELOG.MD +349 -119
- package/build/jodit.css +675 -538
- package/build/jodit.es2018.css +536 -436
- package/build/jodit.es2018.en.css +536 -436
- package/build/jodit.es2018.en.js +1529 -738
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +1533 -742
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +2598 -1680
- 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.less +50 -0
- package/src/core/ui/form/inputs/checkbox/checkbox.ts +48 -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/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/keyboard/delete.ts +30 -8
- 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/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 +23 -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 +10 -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/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/keyboard/delete.d.ts +2 -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} +23 -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,11 +9,194 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 3.10.2
|
|
13
|
+
|
|
14
|
+
#### :boom: Breaking Change
|
|
15
|
+
|
|
16
|
+
- The hotkeys have been castled in the Delete plugin:
|
|
17
|
+
Was:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const hotkeys = {
|
|
21
|
+
delete: ['delete', 'cmd+backspace'],
|
|
22
|
+
deleteWord: ['ctrl+delete', 'cmd+alt+backspace', 'ctrl+alt+backspace'],
|
|
23
|
+
backspace: ['backspace'],
|
|
24
|
+
backspaceWord: ['ctrl+backspace']
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
But the setting was called incorrectly, when the combination was pressed, not one word was deleted, but a whole sentence.
|
|
29
|
+
Now added one more setting:
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const hotkeys = {
|
|
33
|
+
delete: ['delete', 'cmd+backspace'],
|
|
34
|
+
deleteWord: ['ctrl+delete', 'cmd+alt+backspace', 'ctrl+alt+backspace'],
|
|
35
|
+
deleteSentence: ['ctrl+shift+delete', 'cmd+shift+delete'],
|
|
36
|
+
backspace: ['backspace'],
|
|
37
|
+
backspaceWord: ['ctrl+backspace'],
|
|
38
|
+
backspaceSentence: ['ctrl+shift+backspace', 'cmd+shift+backspace']
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### :bug: Bug Fix
|
|
43
|
+
|
|
44
|
+
- fixed sync between WYSIWYG and source editor
|
|
45
|
+
|
|
46
|
+
## 3.10.1
|
|
47
|
+
|
|
48
|
+
#### :boom: Breaking Change
|
|
49
|
+
|
|
50
|
+
- Update `TypeScript@4.5.2`
|
|
51
|
+
- In `IJodit.getEditorValue` added second argument for using with `afterGetValueFromEditor` event.
|
|
52
|
+
You can see example in `source` plugin.
|
|
53
|
+
- In UIButton `state.status` changed to `state.variant`
|
|
54
|
+
- `beforeClose` event can prevent closing the dialog
|
|
55
|
+
|
|
56
|
+
```js
|
|
57
|
+
const dialog = new Jodit.modules.Dialog();
|
|
58
|
+
dialog.setContent('Hello world!').open();
|
|
59
|
+
dialog.e.on('beforeClose', () => confirm('Are you sure?'));
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### :bug: Bug Fix
|
|
63
|
+
|
|
64
|
+
- fix: Proxy blur event to parent triggered on the ACE editor
|
|
65
|
+
|
|
66
|
+
## 3.9.5
|
|
67
|
+
|
|
68
|
+
#### :rocket: New Feature
|
|
69
|
+
|
|
70
|
+
- [Feature request: Open the inline toolbar without having to highlight text. #600](https://github.com/xdan/jodit/issues/600)
|
|
71
|
+
Allow open inline toolbar. This feature is implemented on the basis of the `inline-popup` plugin, a setting has been
|
|
72
|
+
added to it: `popup.toolbar`, which lists the buttons that will be shown in such a toolbar. Added the `showInline`
|
|
73
|
+
method to the `ToolbarEditorCollection` itself:
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
const editor = Jodit.make('#editor', {
|
|
77
|
+
preset: 'inline',
|
|
78
|
+
popup: {
|
|
79
|
+
toolbar: Jodit.atom(['bold', 'italic', 'image'])
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
editor.s.focus();
|
|
83
|
+
|
|
84
|
+
editor.toolbar.showInline();
|
|
85
|
+
// or
|
|
86
|
+
editor.e.fire('showInlineToolbar');
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Also added `ToolbarCollection.hide` and `ToolbarCollection.show` methods.
|
|
90
|
+
|
|
91
|
+
```js
|
|
92
|
+
const editor = Jodit.make('#editor');
|
|
93
|
+
editor.toolbar.hide();
|
|
94
|
+
editor.toolbar.show();
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
- Allow use prototype as component name
|
|
98
|
+
|
|
99
|
+
```js
|
|
100
|
+
console.log(Jodit.modules.UIButton.getFullElName('element')); // jodit-ui-button__element
|
|
101
|
+
console.log(Jodit.modules.UIButton.componentName); // jodit-ui-button
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
- [Remember last opened folder with FileBrowser #675](https://github.com/xdan/jodit/issues/675)
|
|
105
|
+
Boolean option `filebrowser.saveStateInStorage` split to dictionary:
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
interface IFileBrowserOptions
|
|
109
|
+
|
|
110
|
+
:
|
|
111
|
+
{
|
|
112
|
+
}
|
|
113
|
+
saveStateInStorage: false | {
|
|
114
|
+
storeLastOpenedFolder? : boolean;
|
|
115
|
+
storeView? : boolean;
|
|
116
|
+
storeSortBy? : boolean;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
By default:
|
|
122
|
+
|
|
123
|
+
```js
|
|
124
|
+
{
|
|
125
|
+
saveStateInStorage: {
|
|
126
|
+
storeLastOpenedFolder: true,
|
|
127
|
+
storeView
|
|
128
|
+
:
|
|
129
|
+
true,
|
|
130
|
+
storeSortBy
|
|
131
|
+
:
|
|
132
|
+
true
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Disable it:
|
|
138
|
+
|
|
139
|
+
```js
|
|
140
|
+
Jodit.make('#editor', {
|
|
141
|
+
filebrowser: {
|
|
142
|
+
saveStateInStorage: false
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
// or
|
|
147
|
+
|
|
148
|
+
Jodit.make('#editor', {
|
|
149
|
+
filebrowser: {
|
|
150
|
+
saveStateInStorage: {
|
|
151
|
+
storeLastOpenedFolder: false
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
- [Spacer in Button Toolbar](https://github.com/xdan/jodit/issues/713)
|
|
158
|
+
In addition to the `|` metacharacters and `\n` which stand for separator and newline, the `---` metacharacter has
|
|
159
|
+
appeared, which allows you to add a spacer element which pushes all buttons behind the spacer to the right side of the
|
|
160
|
+
toolbar and creates space in the middle.
|
|
161
|
+
|
|
162
|
+
```js
|
|
163
|
+
Jodit.make('#editor', {
|
|
164
|
+
buttons: [
|
|
165
|
+
'source',
|
|
166
|
+
'bold',
|
|
167
|
+
'|',
|
|
168
|
+
'---',
|
|
169
|
+
'|',
|
|
170
|
+
'brush',
|
|
171
|
+
'about',
|
|
172
|
+
'\n',
|
|
173
|
+
'italic'
|
|
174
|
+
]
|
|
175
|
+
});
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## 3.9.4
|
|
179
|
+
|
|
180
|
+
#### :rocket: New Feature
|
|
181
|
+
|
|
182
|
+
- Changed style resize rectangle for resize image or table
|
|
183
|
+
- Added link `POWERED BY JODIT` in statusbar
|
|
184
|
+
- Changed icon for resize handle in the bottom right corner
|
|
185
|
+
|
|
186
|
+
#### :bug: Bug Fix
|
|
187
|
+
|
|
188
|
+
- Fixed popup color for dark theme
|
|
189
|
+
- [Change html tags when list style on/off #738](https://github.com/xdan/jodit/issues/738)
|
|
190
|
+
- [order list/unorder list in source view #732](https://github.com/xdan/jodit/issues/732)
|
|
191
|
+
- [dots supplementary buttons shown incorrectly #692](https://github.com/xdan/jodit/issues/692)
|
|
192
|
+
- [Jodit adds unexpected <span> tag when user lefts cursor inside <script> tag #687](https://github.com/xdan/jodit/issues/687)
|
|
193
|
+
|
|
12
194
|
## 3.9.3
|
|
13
195
|
|
|
14
196
|
#### :boom: Breaking Change
|
|
15
197
|
|
|
16
|
-
- The style `table-layout: fixed` has been removed from tables. When inserting a table, the width of the columns is
|
|
198
|
+
- The style `table-layout: fixed` has been removed from tables. When inserting a table, the width of the columns is
|
|
199
|
+
immediately set for it.
|
|
17
200
|
|
|
18
201
|
## 3.9.1
|
|
19
202
|
|
|
@@ -51,7 +234,8 @@ await new Ajax(editor, {
|
|
|
51
234
|
url: 'index.php'
|
|
52
235
|
})
|
|
53
236
|
.send()˚
|
|
54
|
-
|
|
237
|
+
.
|
|
238
|
+
then(resp => resp.json()); // {success: true, data: ...}
|
|
55
239
|
```
|
|
56
240
|
|
|
57
241
|
- In `.npmignore` added:
|
|
@@ -105,7 +289,8 @@ while (!next2.done) {
|
|
|
105
289
|
|
|
106
290
|
#### :house: Internal
|
|
107
291
|
|
|
108
|
-
- The build system is divided into modules and is now located in the 'build-system' folder, the `src/utils` folder has
|
|
292
|
+
- The build system is divided into modules and is now located in the 'build-system' folder, the `src/utils` folder has
|
|
293
|
+
been moved to it.
|
|
109
294
|
|
|
110
295
|
#### :bug: Bug Fix
|
|
111
296
|
|
|
@@ -214,7 +399,8 @@ Dom.isNode(editor.ed.body); // true
|
|
|
214
399
|
#### :rocket: New Feature
|
|
215
400
|
|
|
216
401
|
- Added `KeyArrowOutside`, allowing to go outside an inline element if there is no other element after that.
|
|
217
|
-
- Dictionary of variable values in css, a complete list can be found
|
|
402
|
+
- Dictionary of variable values in css, a complete list can be found
|
|
403
|
+
here https://github.com/xdan/jodit/blob/master/src/styles/variables.less#L25
|
|
218
404
|
```js
|
|
219
405
|
const editor = Jodit.make('#editor', {
|
|
220
406
|
styleValues: {
|
|
@@ -329,12 +515,12 @@ jodit.e.fire('someAsyncLoadedPluginEvent', test => {
|
|
|
329
515
|
|
|
330
516
|
#### :rocket: New Feature
|
|
331
517
|
|
|
332
|
-
- Added `cursorAfterAutofocus=end` option inside `autofocus` plugin.
|
|
333
|
-
|
|
518
|
+
- Added `cursorAfterAutofocus=end` option inside `autofocus` plugin. Allow change default autofocus position. Possible
|
|
519
|
+
values `start`, `end`.
|
|
334
520
|
[autofocus plugin should focus on the end of the text #649](https://github.com/xdan/jodit/issues/649)
|
|
335
521
|
|
|
336
|
-
- Added `saveSelectionOnBlur=true` option inside `autofocus` plugin.
|
|
337
|
-
|
|
522
|
+
- Added `saveSelectionOnBlur=true` option inside `autofocus` plugin. Allow restore position after editor has focus after
|
|
523
|
+
blur.
|
|
338
524
|
|
|
339
525
|
#### :house: Internal
|
|
340
526
|
|
|
@@ -343,8 +529,8 @@ jodit.e.fire('someAsyncLoadedPluginEvent', test => {
|
|
|
343
529
|
#### :boom: Breaking Change
|
|
344
530
|
|
|
345
531
|
- The `Dom`.`wrap` method changed signature - instead IJodit call with ICreate.
|
|
346
|
-
- The `Select`.`restore` method is called with no arguments. It finds the range using the data attribute selector.
|
|
347
|
-
|
|
532
|
+
- The `Select`.`restore` method is called with no arguments. It finds the range using the data attribute selector. In
|
|
533
|
+
the `Select`.`save` method added `silent=false` argument.
|
|
348
534
|
|
|
349
535
|
Earlier
|
|
350
536
|
|
|
@@ -409,9 +595,8 @@ editor.s.restore();
|
|
|
409
595
|
|
|
410
596
|
#### :rocket: New Feature
|
|
411
597
|
|
|
412
|
-
- Added the ability to open a file browser and any dialog in a new window.
|
|
413
|
-
|
|
414
|
-
For example, this can be done so that the file browser opens in a separate popup window.
|
|
598
|
+
- Added the ability to open a file browser and any dialog in a new window. To do this, you need to define
|
|
599
|
+
the `ownerWindow` field. For example, this can be done so that the file browser opens in a separate popup window.
|
|
415
600
|
|
|
416
601
|
```js
|
|
417
602
|
const editor = Jodit.make('#editor', {
|
|
@@ -465,8 +650,8 @@ editor.e.on('getInstanceFileBrowser', options => {
|
|
|
465
650
|
|
|
466
651
|
#### :boom: Breaking Change
|
|
467
652
|
|
|
468
|
-
- Removed options: `useIframeResizer`, `useImgResizer`, `useTableResizer` from `resizer` plugin.
|
|
469
|
-
|
|
653
|
+
- Removed options: `useIframeResizer`, `useImgResizer`, `useTableResizer` from `resizer` plugin. Instead,
|
|
654
|
+
added `allowResizeTags`.
|
|
470
655
|
|
|
471
656
|
```js
|
|
472
657
|
Config.prototype.allowResizeTags = ['img', 'iframe', 'table', 'jodit'];
|
|
@@ -579,8 +764,7 @@ class UIBtn extends UIElement {
|
|
|
579
764
|
return button;
|
|
580
765
|
}
|
|
581
766
|
|
|
582
|
-
@autobind
|
|
583
|
-
onClick() {
|
|
767
|
+
@autobind onClick() {
|
|
584
768
|
alert('click');
|
|
585
769
|
}
|
|
586
770
|
}
|
|
@@ -596,8 +780,7 @@ class UIBtn extends UIElement {
|
|
|
596
780
|
return `<button class="&__button" style="color:red"></button>`;
|
|
597
781
|
}
|
|
598
782
|
|
|
599
|
-
@watch('container:click')
|
|
600
|
-
onClick() {
|
|
783
|
+
@watch('container:click') onClick() {
|
|
601
784
|
alert('click');
|
|
602
785
|
}
|
|
603
786
|
}
|
|
@@ -679,13 +862,15 @@ console.log(item.options); // {some: false}
|
|
|
679
862
|
|
|
680
863
|
- [Clear formatting control does not clear all styles (keeps underline and strikethrough) #575](https://github.com/xdan/jodit/issues/575)
|
|
681
864
|
- [Reset in size change not rescaling image #568](https://github.com/xdan/jodit/issues/568)
|
|
682
|
-
- [Backspace in beginning of a
|
|
865
|
+
- [Backspace in beginning of a _
|
|
866
|
+
styled_ line does not affect the line positioning #567](https://github.com/xdan/jodit/issues/567)
|
|
683
867
|
- [Table cell elements are always left-aligned #550](https://github.com/xdan/jodit/issues/550)
|
|
684
868
|
- [editor.destruct throws error #543](https://github.com/xdan/jodit/issues/543)
|
|
685
869
|
- [How I can get Iframe without parent element <jodit>...</jodit> #540](https://github.com/xdan/jodit/issues/540)
|
|
686
870
|
- [Layout bug and drag&drop image loading #536](https://github.com/xdan/jodit/issues/536)
|
|
687
871
|
- [Popups are not showing at all on Legacy Edge #531](https://github.com/xdan/jodit/issues/531)
|
|
688
|
-
- Fixed a bug when the search bar was shown in the scrolling editor, the editor was scrolled up. And the search box was
|
|
872
|
+
- Fixed a bug when the search bar was shown in the scrolling editor, the editor was scrolled up. And the search box was
|
|
873
|
+
not in sticky mode.
|
|
689
874
|
|
|
690
875
|
#### :rocket: New Feature
|
|
691
876
|
|
|
@@ -710,16 +895,18 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
|
|
|
710
895
|
|
|
711
896
|
##### New options in `link.plugin`
|
|
712
897
|
|
|
713
|
-
- @property {"input"|"select"|""} link.modeClassName="input" Use an input text to ask the classname or a select or not
|
|
898
|
+
- @property {"input"|"select"|""} link.modeClassName="input" Use an input text to ask the classname or a select or not
|
|
899
|
+
ask
|
|
714
900
|
- @property {boolean} link.selectMultipleClassName=true Allow multiple choises (to use with modeClassName="select")
|
|
715
901
|
- @property {number} link.selectSizeClassName=3 The size of the select (to use with modeClassName="select")
|
|
716
|
-
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
902
|
+
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
903
|
+
modeClassName="select")
|
|
717
904
|
- ex: [
|
|
718
|
-
-
|
|
719
|
-
-
|
|
720
|
-
-
|
|
721
|
-
-
|
|
722
|
-
-
|
|
905
|
+
- { value: "", text: "" },
|
|
906
|
+
- { value: "val1", text: "text1" },
|
|
907
|
+
- { value: "val2", text: "text2" },
|
|
908
|
+
- { value: "val3", text: "text3" }
|
|
909
|
+
- ]
|
|
723
910
|
PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
|
|
724
911
|
|
|
725
912
|
##### New option `statusbar: boolean = true`
|
|
@@ -737,10 +924,10 @@ console.log(editor.statusbar.isShown); // true
|
|
|
737
924
|
|
|
738
925
|
##### Buttons groups
|
|
739
926
|
|
|
740
|
-
The `buttons` option can contain named groups of buttons.
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
927
|
+
The `buttons` option can contain named groups of buttons. Each plugin decides which button belongs to which group. Thus,
|
|
928
|
+
if you turn off the plugin, then its buttons will not be shown either. Available
|
|
929
|
+
groups: ["source", "font-style", "script", "list", "indent", "font", "color", "media", "state", "clipboard", "insert", "history", "search", "other", "info"]
|
|
930
|
+
;
|
|
744
931
|
|
|
745
932
|
```js
|
|
746
933
|
const editor = Jodit.make('#editor', {
|
|
@@ -768,9 +955,8 @@ Jodit.plugins.add('somePlugin', function (editor) {
|
|
|
768
955
|
|
|
769
956
|
##### Hotkeys for BackSpace and Delete and remove part of text
|
|
770
957
|
|
|
771
|
-
Added hotkey settings for Delete and Backspace buttons.
|
|
772
|
-
|
|
773
|
-
Issue: [https://github.com/xdan/jodit/issues/532](https://github.com/xdan/jodit/issues/532)
|
|
958
|
+
Added hotkey settings for Delete and Backspace buttons. And added hotkey `ctrl+backspace` for removing left part of
|
|
959
|
+
text. Issue: [https://github.com/xdan/jodit/issues/532](https://github.com/xdan/jodit/issues/532)
|
|
774
960
|
|
|
775
961
|
```js
|
|
776
962
|
Jodit.make('#editor', {
|
|
@@ -812,10 +998,9 @@ editor.events
|
|
|
812
998
|
|
|
813
999
|
#### :rocket: New Feature
|
|
814
1000
|
|
|
815
|
-
Added `extraIcons` option.
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
But for a declarative declaration, you can use this option.
|
|
1001
|
+
Added `extraIcons` option. By default, you can only install an icon from the Jodit suite. You can add your icon to the
|
|
1002
|
+
set using the `Jodit.modules.Icon.set (name, svg Code)` method. But for a declarative declaration, you can use this
|
|
1003
|
+
option.
|
|
819
1004
|
|
|
820
1005
|
```js
|
|
821
1006
|
Jodit.modules.Icon.set('someIcon', '<svg><path.../></svg>');
|
|
@@ -1032,8 +1217,8 @@ https://github.com/xdan/jodit/issues/359
|
|
|
1032
1217
|
### Features
|
|
1033
1218
|
|
|
1034
1219
|
- All `less` variables were replaced to css custom properties for modern browsers.
|
|
1035
|
-
- Added `WrapTextNodes` plugin - it wrap all alone text node(or inline elements) inside `options.enter` element.
|
|
1036
|
-
|
|
1220
|
+
- Added `WrapTextNodes` plugin - it wrap all alone text node(or inline elements) inside `options.enter` element. You can
|
|
1221
|
+
disable this behaviour:
|
|
1037
1222
|
|
|
1038
1223
|
```js
|
|
1039
1224
|
const editor = Jodit.make('#editor', {
|
|
@@ -1066,8 +1251,7 @@ var editor = new Jodit(root.getElementById('edit'), {
|
|
|
1066
1251
|
editor.value = '<p>start</p>';
|
|
1067
1252
|
```
|
|
1068
1253
|
|
|
1069
|
-
- From `NativeEvent.on` method was removed `selector` argument. It was `jQuery.live` style.
|
|
1070
|
-
Example:
|
|
1254
|
+
- From `NativeEvent.on` method was removed `selector` argument. It was `jQuery.live` style. Example:
|
|
1071
1255
|
|
|
1072
1256
|
```html
|
|
1073
1257
|
<div class="test">
|
|
@@ -1104,8 +1288,7 @@ const editor = Jodit.make('#editor');
|
|
|
1104
1288
|
editor.s.applyStyle({ color: 'red' }); // will add to all selection text - red color
|
|
1105
1289
|
```
|
|
1106
1290
|
|
|
1107
|
-
- `FileBrowser`, `Dialog` etc. modules which extend `View` has only one argument in the constructor - options.
|
|
1108
|
-
Before:
|
|
1291
|
+
- `FileBrowser`, `Dialog` etc. modules which extend `View` has only one argument in the constructor - options. Before:
|
|
1109
1292
|
|
|
1110
1293
|
```js
|
|
1111
1294
|
const editor = Jodit.make('#editor');
|
|
@@ -1143,8 +1326,7 @@ editor.e.on('beforeDestruct', () => {
|
|
|
1143
1326
|
});
|
|
1144
1327
|
```
|
|
1145
1328
|
|
|
1146
|
-
- Split `table` plugin on `select-cells` and `resize-cells` plugins. `useTableProcessor` was removed.
|
|
1147
|
-
Instead, use
|
|
1329
|
+
- Split `table` plugin on `select-cells` and `resize-cells` plugins. `useTableProcessor` was removed. Instead, use
|
|
1148
1330
|
|
|
1149
1331
|
```js
|
|
1150
1332
|
Jodit.make('#editor', {
|
|
@@ -1160,8 +1342,8 @@ Jodit.make('#editor', {
|
|
|
1160
1342
|
|
|
1161
1343
|
- All `less` files were moved near with TS. Class naming was changed closer to BEM.
|
|
1162
1344
|
- Removed `PopupList` and `Popup`. Instead, use only `PopupMenu`.
|
|
1163
|
-
- Added `ui.button` and `ui.list` for working with buttons. `toolbar.button` extends `ui.button`.
|
|
1164
|
-
|
|
1345
|
+
- Added `ui.button` and `ui.list` for working with buttons. `toolbar.button` extends `ui.button`. UIButton - is
|
|
1346
|
+
reactive:
|
|
1165
1347
|
|
|
1166
1348
|
```js
|
|
1167
1349
|
const button = new UIButton();
|
|
@@ -1179,8 +1361,7 @@ button
|
|
|
1179
1361
|
.appendTo(document.body); // will append it inside the body
|
|
1180
1362
|
```
|
|
1181
1363
|
|
|
1182
|
-
- In `tsconfig` added decorators supports.
|
|
1183
|
-
Methods that need binding binds with `@autobind` decorator.
|
|
1364
|
+
- In `tsconfig` added decorators supports. Methods that need binding binds with `@autobind` decorator.
|
|
1184
1365
|
- Added `watch` decorator.
|
|
1185
1366
|
- All filenames were renamed to kebab-case.
|
|
1186
1367
|
- Added short aliases for. Can be used as chain - `this.j.e.on`
|
|
@@ -1266,7 +1447,8 @@ const editor = getJodit({
|
|
|
1266
1447
|
});
|
|
1267
1448
|
```
|
|
1268
1449
|
|
|
1269
|
-
- Added deprecated mechanism. Some methods will not be removed and only will be marked as deprecated until major
|
|
1450
|
+
- Added deprecated mechanism. Some methods will not be removed and only will be marked as deprecated until major
|
|
1451
|
+
release. [#330](https://github.com/xdan/jodit/issues/330)
|
|
1270
1452
|
|
|
1271
1453
|
## 3.3.16
|
|
1272
1454
|
|
|
@@ -1300,7 +1482,8 @@ Fixed SPLIT_MODE
|
|
|
1300
1482
|
|
|
1301
1483
|
### Feature
|
|
1302
1484
|
|
|
1303
|
-
Added `editHTMLDocumentMode` in order to allow the user to edit the entire
|
|
1485
|
+
Added `editHTMLDocumentMode` in order to allow the user to edit the entire
|
|
1486
|
+
document [#241](https://github.com/xdan/jodit/issues/241).
|
|
1304
1487
|
|
|
1305
1488
|
Also added `iframeTitle` and `iframeDoctype` options
|
|
1306
1489
|
|
|
@@ -1354,8 +1537,8 @@ Fixed bug with ProgressBar - it simply does not work(
|
|
|
1354
1537
|
|
|
1355
1538
|
### Feature
|
|
1356
1539
|
|
|
1357
|
-
Source plugin was separated on several classes. Now you can choose SourceEditor
|
|
1358
|
-
|
|
1540
|
+
Source plugin was separated on several classes. Now you can choose SourceEditor or make
|
|
1541
|
+
yourself (https://github.com/xdan/jodit/issues/242)
|
|
1359
1542
|
|
|
1360
1543
|
> Before
|
|
1361
1544
|
|
|
@@ -1458,6 +1641,7 @@ Inside plugin, you can use several fields:
|
|
|
1458
1641
|
class Emoji {
|
|
1459
1642
|
hasStyle = true; //
|
|
1460
1643
|
requires = ['autocomplete'];
|
|
1644
|
+
|
|
1461
1645
|
init(editor) {
|
|
1462
1646
|
// this code will be execute only after autocomplete.init
|
|
1463
1647
|
}
|
|
@@ -1493,13 +1677,11 @@ extraPlugins option allows appending in editor extra plugins from npm, bower etc
|
|
|
1493
1677
|
|
|
1494
1678
|
### Build System
|
|
1495
1679
|
|
|
1496
|
-
In Build system was added gulp subsystem to build extra plugins.
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
folder (eg `build/plugins/emoji/`).
|
|
1680
|
+
In Build system was added gulp subsystem to build extra plugins. You can make extra plugins like `plugins/example` and
|
|
1681
|
+
after build, this plugin will not be inside `jodit.min.js` file. It will be in separate folder (
|
|
1682
|
+
eg `build/plugins/emoji/`).
|
|
1500
1683
|
|
|
1501
|
-
Also in root you can find `make.js` file for install your plugin
|
|
1502
|
-
in build system.
|
|
1684
|
+
Also in root you can find `make.js` file for install your plugin in build system.
|
|
1503
1685
|
|
|
1504
1686
|
---
|
|
1505
1687
|
|
|
@@ -1522,8 +1704,8 @@ var editor = new Jodir('.editor', {
|
|
|
1522
1704
|
|
|
1523
1705
|
- Added `useIframeResizer` option for resize IFRAME tag
|
|
1524
1706
|

|
|
1525
|
-
- Added `offsetTopForAssix` option.
|
|
1526
|
-
|
|
1707
|
+
- Added `offsetTopForAssix` option. For example, in Joomla, the top menu bar closes Jodit toolbar when scrolling.
|
|
1708
|
+
Therefore, it is necessary to move the toolbar Jodit by this amount
|
|
1527
1709
|
|
|
1528
1710
|
```javascript
|
|
1529
1711
|
var editor = new Jodit('#editor', {
|
|
@@ -1542,8 +1724,9 @@ Added `Embed video` button. Added `vimeo` or `youtube` video embeded code.
|
|
|
1542
1724
|
|
|
1543
1725
|
### 2.5.54
|
|
1544
1726
|
|
|
1545
|
-
When you insert text into the editor from another site, all the images are from a remote site. Before Jodit, it was
|
|
1546
|
-
|
|
1727
|
+
When you insert text into the editor from another site, all the images are from a remote site. Before Jodit, it was
|
|
1728
|
+
quite uncomfortable: first I had to download the image from a remote resource, and then upload it to your site, then
|
|
1729
|
+
replace the image in the editor. In 2.5.54 it can be done in 3 clicks
|
|
1547
1730
|
|
|
1548
1731
|

|
|
1549
1732
|
|
|
@@ -1612,7 +1795,8 @@ Jodit.Confirm('Are you sure?', function (yes) {
|
|
|
1612
1795
|
|
|
1613
1796
|
### 2.5.49
|
|
1614
1797
|
|
|
1615
|
-
First step for Mobile-friendly [sizeLG,sizeMD,sizeSM](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#sizeLG) and
|
|
1798
|
+
First step for Mobile-friendly [sizeLG,sizeMD,sizeSM](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#sizeLG) and
|
|
1799
|
+
sets of buttons for different sizes editors.
|
|
1616
1800
|
|
|
1617
1801
|
> `Note`. this is not the width of the device, the width of the editor
|
|
1618
1802
|
|
|
@@ -1739,7 +1923,8 @@ var editor = new Jodit('#some-editor', {
|
|
|
1739
1923
|

|
|
1740
1924
|
|
|
1741
1925
|
- Added [Helper.normalizeColor](http://xdsoft.net/jodit/doc/module-Helper.html#~normalizeColor)
|
|
1742
|
-
- Fixed [Helper.colorToHex](http://xdsoft.net/jodit/doc/module-Helper.html#~colorToHex) now for transparent color it
|
|
1926
|
+
- Fixed [Helper.colorToHex](http://xdsoft.net/jodit/doc/module-Helper.html#~colorToHex) now for transparent color it
|
|
1927
|
+
will return NaN
|
|
1743
1928
|
|
|
1744
1929
|
### 2.5.45
|
|
1745
1930
|
|
|
@@ -1754,7 +1939,8 @@ Fix a few bugs in [JJE](http://xdsoft.net/jodit/#extesions)
|
|
|
1754
1939
|
### 2.5.40
|
|
1755
1940
|
|
|
1756
1941
|
- In [Helper](http://xdsoft.net/jodit/doc/module-Helper.html) module added [isHTML] method. Used plugin `insertHTML`
|
|
1757
|
-
- Added simple plugin `insertHTML` and him option `askBeforePasteHTML` - Ask before paste HTML in WYSIWYG mode. Try
|
|
1942
|
+
- Added simple plugin `insertHTML` and him option `askBeforePasteHTML` - Ask before paste HTML in WYSIWYG mode. Try
|
|
1943
|
+
insert in WYSIWYG mode some HTML source
|
|
1758
1944
|
|
|
1759
1945
|
```javascript
|
|
1760
1946
|
(function ($) {
|
|
@@ -1816,7 +2002,8 @@ Fix [#issue 11](https://github.com/xdan/jodit/issues/11) in `file:` mode CDN Cod
|
|
|
1816
2002
|
|
|
1817
2003
|
### 2.5.37
|
|
1818
2004
|
|
|
1819
|
-
- Fixed bug in [`Beautifier`](http://xdsoft.net/jodit/doc/module-Beautifier.html) plugin. When in `source` mode, start
|
|
2005
|
+
- Fixed bug in [`Beautifier`](http://xdsoft.net/jodit/doc/module-Beautifier.html) plugin. When in `source` mode, start
|
|
2006
|
+
comment enter `<!--` Browser stops responding.
|
|
1820
2007
|
- Added `tiles` and `list` switcher in filebrowser
|
|
1821
2008
|
|
|
1822
2009
|
### 2.5.36
|
|
@@ -1844,8 +2031,10 @@ Jodit.Confirm('Are you sure?', 'Confirm', function (success) {
|
|
|
1844
2031
|
|
|
1845
2032
|
### 2.5.27
|
|
1846
2033
|
|
|
1847
|
-
- Fixed IE11's
|
|
1848
|
-
|
|
2034
|
+
- Fixed IE11's
|
|
2035
|
+
bug [http://xdsoft.net/jodit/doc/module-Jodit.html#comment-2866837441](http://xdsoft.net/jodit/doc/module-Jodit.html#comment-2866837441)
|
|
2036
|
+
- Added [textIcons](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#texticons) options - Use text instead of
|
|
2037
|
+
icons. In IE9 it is default - true [Example](http://xdsoft.net/jodit/#example-text-icons)
|
|
1849
2038
|
|
|
1850
2039
|
```javascript
|
|
1851
2040
|
var editor = new Jodit('#example2_0', {
|
|
@@ -1870,7 +2059,11 @@ var editor = new Jodit('#example2_0', {
|
|
|
1870
2059
|
Dom Module is now compatible with jQuery objects
|
|
1871
2060
|
|
|
1872
2061
|
```javascript
|
|
1873
|
-
var a = jQuery("<a href="
|
|
2062
|
+
var a = jQuery("<a href="
|
|
2063
|
+
#link
|
|
2064
|
+
">Link</a>"
|
|
2065
|
+
)
|
|
2066
|
+
;
|
|
1874
2067
|
jodit.modules.Dom('.selector').append(a);
|
|
1875
2068
|
jodit.modules.Dom(jQuery("#someid")).val();
|
|
1876
2069
|
jodit.modules.Dom("#someid").val();
|
|
@@ -1881,14 +2074,16 @@ But you must remember that Jodit.modules.Dom! = JQuery
|
|
|
1881
2074
|
### 2.5.23
|
|
1882
2075
|
|
|
1883
2076
|
- Added `expand button` In filebrowser
|
|
1884
|
-
- Added [fullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog)
|
|
2077
|
+
- Added [fullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog)
|
|
2078
|
+
and [fullsizeButton](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog) options
|
|
1885
2079
|
|
|
1886
2080
|
### 2.5.20
|
|
1887
2081
|
|
|
1888
2082
|
- Fix [Dom.prev](http://xdsoft.net/jodit/doc/module-Dom.html#prev) method
|
|
1889
2083
|
- Added navigation and select in preview
|
|
1890
2084
|

|
|
1891
|
-
- Added [showSelectButtonInPreview](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2085
|
+
- Added [showSelectButtonInPreview](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2086
|
+
and [showPreviewNavigation](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
1892
2087
|
|
|
1893
2088
|
### 2.5.19
|
|
1894
2089
|
|
|
@@ -1971,7 +2166,9 @@ Added edit button in Image Properties Dialog
|
|
|
1971
2166
|
### 2.5.1
|
|
1972
2167
|
|
|
1973
2168
|
- Dom module was rewritten and was fixed afew bugs
|
|
1974
|
-
- In [OEM and Pro](http://xdsoft.net/jodit/#download)
|
|
2169
|
+
- In [OEM and Pro](http://xdsoft.net/jodit/#download)
|
|
2170
|
+
added [Image Editor module](http://xdsoft.net/jodit/doc/module-ImageEditor.html) resize and crop image. You can
|
|
2171
|
+
try [here](http://xdsoft.net/jodit/)
|
|
1975
2172
|

|
|
1976
2173
|

|
|
1977
2174
|
|
|
@@ -2004,7 +2201,8 @@ Fixed bug with insert `OL` tag and Fixed Dom module work with Text node
|
|
|
2004
2201
|
|
|
2005
2202
|
### 2.4.12
|
|
2006
2203
|
|
|
2007
|
-
Added [toolbarButtonSize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#toolbarbuttonsize) Size of icons in the
|
|
2204
|
+
Added [toolbarButtonSize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#toolbarbuttonsize) Size of icons in the
|
|
2205
|
+
toolbar (can be "small", "middle", "large")
|
|
2008
2206
|
|
|
2009
2207
|
```javascript
|
|
2010
2208
|
var editor = new Jodit('#editor', {
|
|
@@ -2023,9 +2221,11 @@ editor.s.insertNode(node);
|
|
|
2023
2221
|
```
|
|
2024
2222
|
|
|
2025
2223
|
- Added [link](http://xdsoft.net/jodit/doc/module-link.html) plugin. And its options
|
|
2026
|
-
- [processPastedLink](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Wrap inserted link
|
|
2224
|
+
- [processPastedLink](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Wrap inserted link
|
|
2225
|
+
in `<a href="link">link</a>`
|
|
2027
2226
|
- [openLinkDialogAfterPost](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Open Link dialog after post
|
|
2028
|
-
- [removeLinkAfterFormat](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) When the button is pressed to
|
|
2227
|
+
- [removeLinkAfterFormat](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) When the button is pressed to
|
|
2228
|
+
clean format, if it was done on the link is removed like command `unlink`
|
|
2029
2229
|
- Replace format icon
|
|
2030
2230
|
|
|
2031
2231
|
### 2.4.8
|
|
@@ -2034,8 +2234,7 @@ Fixed Base icons [issue](https://gist.github.com/leonderijke/c5cf7c5b2e424c0061d
|
|
|
2034
2234
|
|
|
2035
2235
|
### 2.4.6
|
|
2036
2236
|
|
|
2037
|
-
Fast Fixed in JJE
|
|
2038
|
-
Fixed a lot of bugs in Jodit
|
|
2237
|
+
Fast Fixed in JJE Fixed a lot of bugs in Jodit
|
|
2039
2238
|
|
|
2040
2239
|
### 2.4.1
|
|
2041
2240
|
|
|
@@ -2050,8 +2249,10 @@ Fixed a lot of bugs in Jodit
|
|
|
2050
2249
|
### 2.3.59
|
|
2051
2250
|
|
|
2052
2251
|
- Added [Cookie](http://xdsoft.net/jodit/doc/module-Cookie.html) module
|
|
2053
|
-
- Added [saveModeInCookie](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#savemodeincookie) if it is true that
|
|
2054
|
-
|
|
2252
|
+
- Added [saveModeInCookie](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#savemodeincookie) if it is true that
|
|
2253
|
+
the current mode is saved in a cookie , and is restored after a reload of the page
|
|
2254
|
+
- In Joomla Jodit Editor(JJE) added corresponding option
|
|
2255
|
+
saveModeInCookie [Download Jodit Joomla editor](http://xdsoft.net/jodit/release/joomla.zip)
|
|
2055
2256
|
|
|
2056
2257
|
### 2.3.57
|
|
2057
2258
|
|
|
@@ -2060,20 +2261,26 @@ Fixed a lot of bugs in Jodit
|
|
|
2060
2261
|
|
|
2061
2262
|
### 2.3.53
|
|
2062
2263
|
|
|
2063
|
-
- Added option [cleanHTML.cleanOnPaste](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#cleanhtml) The
|
|
2064
|
-
|
|
2264
|
+
- Added option [cleanHTML.cleanOnPaste](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#cleanhtml) The
|
|
2265
|
+
plugin [cleanHTML](http://xdsoft.net/jodit/doc/module-cleanHTML.html) automatically cleans up content from Microsoft
|
|
2266
|
+
Word and other HTML sources to ensure clean, compliant content that matches the look and feel of the site.
|
|
2267
|
+
- 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)
|
|
2268
|
+
events
|
|
2065
2269
|
|
|
2066
2270
|
### 2.3.49
|
|
2067
2271
|
|
|
2068
|
-
Added [iframeBaseUrl](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframebaseurl) option - Base URL where the
|
|
2272
|
+
Added [iframeBaseUrl](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframebaseurl) option - Base URL where the
|
|
2273
|
+
root directory for [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframe) mode
|
|
2069
2274
|
|
|
2070
2275
|
### 2.3.48
|
|
2071
2276
|
|
|
2072
|
-
Added [spellcheck](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#spellcheck) option specifies whether the editor
|
|
2277
|
+
Added [spellcheck](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#spellcheck) option specifies whether the editor
|
|
2278
|
+
is to have its spelling and grammar checked or not
|
|
2073
2279
|
|
|
2074
2280
|
### 2.3.47
|
|
2075
2281
|
|
|
2076
|
-
Added [removeEmptyBlocks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#removeemptyblocks) option - Remove empty
|
|
2282
|
+
Added [removeEmptyBlocks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#removeemptyblocks) option - Remove empty
|
|
2283
|
+
blocks
|
|
2077
2284
|
|
|
2078
2285
|
```javascript
|
|
2079
2286
|
var editor = new Jodit('#editor', {
|
|
@@ -2094,11 +2301,11 @@ console.log(editor.val()); //''
|
|
|
2094
2301
|
|
|
2095
2302
|
### 2.3.44
|
|
2096
2303
|
|
|
2097
|
-
Added [direction](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#direction) option.
|
|
2098
|
-
|
|
2099
|
-
Allowed values are:
|
|
2304
|
+
Added [direction](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#direction) option. The writing direction of the
|
|
2305
|
+
language which is used to create editor content. Allowed values are:
|
|
2100
2306
|
|
|
2101
|
-
- '' (an empty string) – Indicates that content direction will be the same as either the editor UI direction or the page
|
|
2307
|
+
- '' (an empty string) – Indicates that content direction will be the same as either the editor UI direction or the page
|
|
2308
|
+
element direction.
|
|
2102
2309
|
- 'ltr' – Indicates a Left-To-Right text direction (like in English).
|
|
2103
2310
|
- 'rtl' – Indicates a Right-To-Left text direction (like in Arabic).
|
|
2104
2311
|
|
|
@@ -2108,18 +2315,23 @@ Fixed styles bugs
|
|
|
2108
2315
|
|
|
2109
2316
|
### 2.3.41
|
|
2110
2317
|
|
|
2111
|
-
When [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) === false show 4
|
|
2318
|
+
When [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) === false show 4
|
|
2319
|
+
colums in filelist
|
|
2112
2320
|
|
|
2113
2321
|
### 2.3.40
|
|
2114
2322
|
|
|
2115
|
-
- Added [filebrowser.moveFolder](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2116
|
-
|
|
2117
|
-
- Added [filebrowser.
|
|
2323
|
+
- Added [filebrowser.moveFolder](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2324
|
+
move folder
|
|
2325
|
+
- Added [filebrowser.moveFile](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2326
|
+
move file
|
|
2327
|
+
- Added [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option.
|
|
2328
|
+
Hide/show folders panel in filebrowser
|
|
2118
2329
|
|
|
2119
2330
|
### 2.3.39
|
|
2120
2331
|
|
|
2121
|
-
Fixed [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html) uploader's options bug.
|
|
2122
|
-
|
|
2332
|
+
Fixed [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html) uploader's options bug. Previously , you had to
|
|
2333
|
+
either use a general [Uploader](http://xdsoft.net/jodit/doc/module-Uploader.html) module settings , or override them
|
|
2334
|
+
completely
|
|
2123
2335
|
|
|
2124
2336
|
```javascript
|
|
2125
2337
|
var editor = new Jodit('.redactor', {
|
|
@@ -2182,7 +2394,8 @@ editor.events.fire('toggleFullsize', [true]); // fullsize
|
|
|
2182
2394
|
editor.events.fire('toggleFullsize', [false]); // usual mode
|
|
2183
2395
|
```
|
|
2184
2396
|
|
|
2185
|
-
- Added [globalFullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#globalFullsize) (default `true`) if true,
|
|
2397
|
+
- Added [globalFullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#globalFullsize) (default `true`) if true,
|
|
2398
|
+
after `fullsize` - all parents element get `jodit_fullsize_box` class (z-index: 100000 !important;)
|
|
2186
2399
|
- Fixed focus bug
|
|
2187
2400
|
|
|
2188
2401
|
### 2.3.35
|
|
@@ -2201,32 +2414,37 @@ Jodit.modules.Dom('.idclass').css('margin-top'); //now it returns int `20`
|
|
|
2201
2414
|
|
|
2202
2415
|
### 2.3.33
|
|
2203
2416
|
|
|
2204
|
-
- Fixed placeholder style. Placeholder placed in a separate
|
|
2417
|
+
- Fixed placeholder style. Placeholder placed in a separate
|
|
2418
|
+
module [Placeholder](http://xdsoft.net/jodit/doc/module-Placeholder.html)
|
|
2205
2419
|
- Added [showPlaceholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#showplaceholder) option
|
|
2206
2420
|
- Added [useInputsPlaceholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#useinputsplaceholder) option
|
|
2207
2421
|
- Added [placeholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#placeholder) option
|
|
2208
2422
|
|
|
2209
2423
|
### 2.3.32
|
|
2210
2424
|
|
|
2211
|
-
Added [uploader.data](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#uploader) option. Data to be sent to the
|
|
2425
|
+
Added [uploader.data](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#uploader) option. Data to be sent to the
|
|
2426
|
+
server like POST parameters
|
|
2212
2427
|
|
|
2213
2428
|
### 2.3.31
|
|
2214
2429
|
|
|
2215
|
-
Added [editorCssClass](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#editorcssclass) option - Class name that
|
|
2216
|
-
Fixed internacionalization
|
|
2430
|
+
Added [editorCssClass](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#editorcssclass) option - Class name that
|
|
2431
|
+
can be appended to the editor Fixed internacionalization
|
|
2217
2432
|
|
|
2218
2433
|
### 2.3.30
|
|
2219
2434
|
|
|
2220
|
-
Added [triggerChangeEvent](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#triggerchangeevent) option
|
|
2221
|
-
|
|
2435
|
+
Added [triggerChangeEvent](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#triggerchangeevent) option Fixed
|
|
2436
|
+
uploader's options - When the uploader is not configured, the editor still displays images upload button
|
|
2222
2437
|
|
|
2223
2438
|
### 2.3.29
|
|
2224
2439
|
|
|
2225
|
-
Add [Dom.defaultAjaxOptions.async](http://xdsoft.net/jodit/doc/module-Dom.html#.__.defaultAjaxOptions) By default, all
|
|
2440
|
+
Add [Dom.defaultAjaxOptions.async](http://xdsoft.net/jodit/doc/module-Dom.html#.__.defaultAjaxOptions) By default, all
|
|
2441
|
+
requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this
|
|
2442
|
+
option to false
|
|
2226
2443
|
|
|
2227
2444
|
### 2.3.28
|
|
2228
2445
|
|
|
2229
|
-
Added `headers` option in {@link module:FileBrowser|FileBrowser} and {@link module:Uploader|Uploader}. But primarily in
|
|
2446
|
+
Added `headers` option in {@link module:FileBrowser|FileBrowser} and {@link module:Uploader|Uploader}. But primarily in
|
|
2447
|
+
{@link module:Dom|Dom}
|
|
2230
2448
|
|
|
2231
2449
|
```javascript
|
|
2232
2450
|
var token = document
|
|
@@ -2274,9 +2492,8 @@ Fixed [#issues1](https://github.com/xdan/jodit/issues/1)
|
|
|
2274
2492
|
|
|
2275
2493
|
### 2.3.24
|
|
2276
2494
|
|
|
2277
|
-
Fixed dialog's module when was opened Promt window, after Enter submit the form and the page reloaded.
|
|
2278
|
-
|
|
2279
|
-
Update [Jodit.i18n](http://xdsoft.net/jodit/doc/module-Jodit.html#.i18n) method. Now it can be used staticly
|
|
2495
|
+
Fixed dialog's module when was opened Promt window, after Enter submit the form and the page reloaded. Fixed connector's
|
|
2496
|
+
bugs Update [Jodit.i18n](http://xdsoft.net/jodit/doc/module-Jodit.html#.i18n) method. Now it can be used staticly
|
|
2280
2497
|
|
|
2281
2498
|
```javascript
|
|
2282
2499
|
var editor = new Jodit('#redactor', {
|
|
@@ -2317,8 +2534,8 @@ Jodit.Alert('Hello world!!!');
|
|
|
2317
2534
|
|
|
2318
2535
|
### 2.3.20
|
|
2319
2536
|
|
|
2320
|
-
Fixed dialog's module zIndex manage.
|
|
2321
|
-
|
|
2537
|
+
Fixed dialog's module zIndex manage. Fixed [Dom.css](http://xdsoft.net/jodit/doc/module-Dom.html#~css) method bug. That
|
|
2538
|
+
example has not worked.
|
|
2322
2539
|
|
|
2323
2540
|
```javascript
|
|
2324
2541
|
Jodit.modules.Dom('.someelement').css('z-index', 1000);
|
|
@@ -2326,12 +2543,15 @@ Jodit.modules.Dom('.someelement').css('z-index', 1000);
|
|
|
2326
2543
|
|
|
2327
2544
|
### 2.3.19
|
|
2328
2545
|
|
|
2329
|
-
Fixed bug in Uploader module when `http://sitename.net/jodit///files/fg.jpg` was
|
|
2546
|
+
Fixed bug in Uploader module when `http://sitename.net/jodit///files/fg.jpg` was
|
|
2547
|
+
replaced `http:/sitename.net/jodit/files/fg.jpg`
|
|
2330
2548
|
|
|
2331
2549
|
### 2.3.18
|
|
2332
2550
|
|
|
2333
|
-
Added `afterInsertImage` event - triggered after image was
|
|
2334
|
-
|
|
2551
|
+
Added `afterInsertImage` event - triggered after image was
|
|
2552
|
+
inserted [selection.insertImage](http://xdsoft.net/jodit/doc/module-Selection.html#-insertImage__anchor). This method
|
|
2553
|
+
can execute from [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html)
|
|
2554
|
+
or [Uploader](http://xdsoft.net/jodit/doc/module-Uploader.html)
|
|
2335
2555
|
|
|
2336
2556
|
```javascript
|
|
2337
2557
|
var editor = new Jodit('#redactor');
|
|
@@ -2385,7 +2605,8 @@ Added copy-paste support by clipboard image. [Try](http://xdsoft.net/jodit) past
|
|
|
2385
2605
|
|
|
2386
2606
|
### 2.2.4
|
|
2387
2607
|
|
|
2388
|
-
Added the ability in the file browser to obtain data about the file not as a string and as an object with parameters
|
|
2608
|
+
Added the ability in the file browser to obtain data about the file not as a string and as an object with parameters
|
|
2609
|
+
{file: 'name.jpg', thumb: '\_thumbs/name.jpg'}
|
|
2389
2610
|
|
|
2390
2611
|
### 2.2.3
|
|
2391
2612
|
|
|
@@ -2397,8 +2618,15 @@ Fixed BACKSPACE entering behavior. And Fixed ie10 support
|
|
|
2397
2618
|
|
|
2398
2619
|
### 2.2.0
|
|
2399
2620
|
|
|
2400
|
-
Added [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframe)
|
|
2401
|
-
|
|
2621
|
+
Added [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframe)
|
|
2622
|
+
, [iframeStyle](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeStyle)
|
|
2623
|
+
, [iframeIncludeJoditStyle](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeIncludeJoditStyle)
|
|
2624
|
+
, [iframeCSSLinks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeCSSLinks)
|
|
2625
|
+
, [width](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.width)
|
|
2626
|
+
, [height](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.height)
|
|
2627
|
+
, [minHeight](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.minHeight).
|
|
2628
|
+
`iframe` by default false. When this option is enabled, the editor's content will be placed in an iframe and isolated
|
|
2629
|
+
from the rest of the page.
|
|
2402
2630
|
`width` and `height` you can set size fot editor
|
|
2403
2631
|
|
|
2404
2632
|
### 2.1.0
|
|
@@ -2407,7 +2635,8 @@ Added internationalization. Read more http://xdsoft.net/jodit/doc/Jodit.defaultO
|
|
|
2407
2635
|
|
|
2408
2636
|
### 2.0.9
|
|
2409
2637
|
|
|
2410
|
-
Added Split mode. Added [useSplitMode](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.useSplitMode) options (
|
|
2638
|
+
Added Split mode. Added [useSplitMode](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.useSplitMode) options (
|
|
2639
|
+
default true) Example [here](http://xdsoft.net/jodit/#splitmode)
|
|
2411
2640
|
|
|
2412
2641
|
### 2.0.8
|
|
2413
2642
|
|
|
@@ -2427,7 +2656,8 @@ Fixed bug in filebrowser
|
|
|
2427
2656
|
|
|
2428
2657
|
### 1.2.0
|
|
2429
2658
|
|
|
2430
|
-
Fixed bug when [selection.insertHTML](http://xdsoft.net/jodit/doc/module-Selection.html#-inner-insertHTML__anchor)
|
|
2659
|
+
Fixed bug when [selection.insertHTML](http://xdsoft.net/jodit/doc/module-Selection.html#-inner-insertHTML__anchor)
|
|
2660
|
+
doesn't work without focus
|
|
2431
2661
|
|
|
2432
2662
|
### 1.1.0
|
|
2433
2663
|
|