jodit 3.9.6 → 3.11.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/dictionaries/v_chupurnov.xml +1 -0
- package/.idea/workspace.xml +197 -179
- package/CHANGELOG.MD +279 -133
- package/build/jodit.css +185 -130
- package/build/jodit.es2018.css +175 -126
- package/build/jodit.es2018.en.css +175 -126
- package/build/jodit.es2018.en.js +709 -367
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +709 -367
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +1362 -900
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/package.json +22 -11
- package/src/core/async.ts +4 -0
- package/src/core/component/statuses.ts +6 -6
- package/src/core/dom.ts +25 -5
- package/src/core/events/event-emitter.ts +4 -2
- package/src/core/global.ts +15 -4
- package/src/core/helpers/append-script.ts +14 -0
- package/src/core/helpers/selector.ts +8 -3
- package/src/core/request/ajax.ts +5 -2
- package/src/core/request/response.ts +8 -4
- package/src/core/selection/style/api/toggle/toggle-css.ts +1 -1
- package/src/core/ui/button/button/button.less +8 -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/icon.ts +2 -1
- package/src/core/ui/list/group.ts +2 -2
- package/src/core/ui/popup/popup.ts +59 -3
- package/src/jodit.ts +17 -14
- package/src/modules/dialog/dialog.less +0 -1
- package/src/modules/dialog/dialog.ts +2 -2
- package/src/modules/toolbar/collection/collection.ts +1 -6
- package/src/modules/toolbar/collection/editor-collection.ts +5 -1
- package/src/modules/widget/file-selector/file-selector.ts +1 -1
- package/src/modules/widget/tabs/tabs.less +1 -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/clipboard/paste/paste.ts +1 -1
- package/src/plugins/image/image-properties/image-properties.ts +7 -0
- package/src/plugins/index.ts +1 -1
- package/src/plugins/keyboard/backspace/backspace.ts +183 -0
- package/src/plugins/keyboard/backspace/cases/check-join-neighbors.ts +117 -0
- package/src/plugins/keyboard/backspace/cases/check-join-two-lists.ts +55 -0
- package/src/plugins/keyboard/backspace/cases/check-not-collapsed.ts +27 -0
- package/src/plugins/keyboard/backspace/cases/check-remove-char.ts +191 -0
- package/src/plugins/keyboard/backspace/cases/check-remove-content-not-editable.ts +46 -0
- package/src/plugins/keyboard/backspace/cases/check-remove-empty-neighbor.ts +43 -0
- package/src/plugins/keyboard/backspace/cases/check-remove-empty-parent.ts +80 -0
- package/src/plugins/keyboard/backspace/cases/check-remove-unbreakable-element.ts +46 -0
- package/src/plugins/keyboard/backspace/cases/check-table-cell.ts +30 -0
- package/src/plugins/keyboard/backspace/cases/check-unwrap-first-list-item.ts +57 -0
- package/src/plugins/keyboard/backspace/cases/index.ts +27 -0
- package/src/plugins/keyboard/backspace/config.ts +33 -0
- package/src/plugins/keyboard/backspace/interface.d.ts +7 -0
- package/src/plugins/keyboard/helpers.ts +7 -3
- package/src/plugins/link/template.ts +2 -2
- package/src/plugins/print/preview.ts +103 -55
- package/src/plugins/resizer/resizer.ts +7 -2
- package/src/plugins/select.ts +0 -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 +19 -7
- package/src/styles/jodit.less +6 -0
- package/src/types/ajax.d.ts +3 -0
- package/src/types/async.d.ts +2 -0
- package/src/types/jodit.d.ts +5 -8
- package/src/types/popup.d.ts +1 -0
- package/src/types/ui.d.ts +23 -4
- package/types/core/async.d.ts +1 -0
- package/types/core/component/component.d.ts +6 -2
- package/types/core/component/statuses.d.ts +6 -6
- package/types/core/dom.d.ts +6 -2
- package/types/core/global.d.ts +1 -1
- package/types/core/helpers/append-script.d.ts +1 -0
- package/types/core/helpers/selector.d.ts +2 -3
- package/types/core/request/response.d.ts +2 -1
- 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/icon.d.ts +1 -1
- package/types/core/ui/list/group.d.ts +2 -1
- package/types/core/ui/popup/popup.d.ts +2 -1
- package/types/jodit.d.ts +6 -6
- package/types/modules/toolbar/button/button.d.ts +1 -1
- package/types/modules/widget/tabs/tabs.d.ts +2 -1
- package/types/plugins/index.d.ts +1 -1
- package/types/plugins/keyboard/backspace/backspace.d.ts +28 -0
- package/types/plugins/keyboard/backspace/cases/check-join-neighbors.d.ts +10 -0
- package/types/plugins/keyboard/backspace/cases/check-join-two-lists.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/check-not-collapsed.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/check-remove-char.d.ts +20 -0
- package/types/plugins/keyboard/backspace/cases/check-remove-content-not-editable.d.ts +10 -0
- package/types/plugins/keyboard/backspace/cases/check-remove-empty-neighbor.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/check-remove-empty-parent.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/check-remove-unbreakable-element.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/check-table-cell.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/check-unwrap-first-list-item.d.ts +19 -0
- package/types/plugins/keyboard/backspace/cases/index.d.ts +8 -0
- package/types/plugins/keyboard/backspace/config.d.ts +20 -0
- package/types/plugins/keyboard/helpers.d.ts +2 -2
- package/types/plugins/select.d.ts +0 -1
- 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/types/{ajax.d.ts → types/ajax.d.ts} +3 -0
- package/types/types/{async.d.ts → types/async.d.ts} +2 -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} +0 -0
- 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} +5 -8
- 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} +0 -0
- package/types/types/{source.d.ts → types/source.d.ts} +0 -0
- package/types/types/{storage.ts → types/storage.ts} +0 -0
- package/types/types/{style.d.ts → types/style.d.ts} +0 -0
- package/types/types/{toolbar.d.ts → types/toolbar.d.ts} +0 -0
- package/types/types/{traits.d.ts → types/traits.d.ts} +0 -0
- package/types/types/{types.d.ts → types/types.d.ts} +0 -0
- 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} +0 -0
- package/src/plugins/keyboard/delete.ts +0 -746
- package/types/plugins/keyboard/delete.d.ts +0 -161
package/CHANGELOG.MD
CHANGED
|
@@ -9,14 +9,104 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 3.11.2
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fix
|
|
15
|
+
|
|
16
|
+
- Fixed a bug when resizing images whose size was specified in the style attribute - the size did not change
|
|
17
|
+
|
|
18
|
+
## 3.11.1
|
|
19
|
+
|
|
20
|
+
#### :boom: Breaking Change
|
|
21
|
+
|
|
22
|
+
- Plugin `Delete` renamed to` Backspace`. And it is highly refractory.
|
|
23
|
+
|
|
24
|
+
#### :rocket: New Feature
|
|
25
|
+
|
|
26
|
+
- Open localhost in browser on `npm start`
|
|
27
|
+
- Added `Async.prototype.delay` method
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
await editor.async.delay(1000);
|
|
31
|
+
alert('Alert after 1s');
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- Added `Ajax.options.responseType` option `XMLHttpRequestResponseType`
|
|
35
|
+
- Added `Response.prototype.blob()` method
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
const ajax = new Jodit.modules.Ajax({ responseType: 'blob' });
|
|
39
|
+
await ajax.send().then(resp => resp.blob());
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### :bug: Bug Fix
|
|
43
|
+
|
|
44
|
+
- Added handling of `contenteditable = false` elements to the plugin` Backspace`.
|
|
45
|
+
- [es2018 build don't works properly starting from jodit 3.9.4 #758](https://github.com/xdan/jodit/issues/758)
|
|
46
|
+
- [shadow dom support only partly fixed #746](https://github.com/xdan/jodit/issues/746)
|
|
47
|
+
|
|
48
|
+
## 3.10.2
|
|
49
|
+
|
|
50
|
+
#### :boom: Breaking Change
|
|
51
|
+
|
|
52
|
+
- The hotkeys have been castled in the Delete plugin:
|
|
53
|
+
Was:
|
|
54
|
+
|
|
55
|
+
```js
|
|
56
|
+
const hotkeys = {
|
|
57
|
+
delete: ['delete', 'cmd+backspace'],
|
|
58
|
+
deleteWord: ['ctrl+delete', 'cmd+alt+backspace', 'ctrl+alt+backspace'],
|
|
59
|
+
backspace: ['backspace'],
|
|
60
|
+
backspaceWord: ['ctrl+backspace']
|
|
61
|
+
};
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
But the setting was called incorrectly, when the combination was pressed, not one word was deleted, but a whole sentence.
|
|
65
|
+
Now added one more setting:
|
|
66
|
+
|
|
67
|
+
```js
|
|
68
|
+
const hotkeys = {
|
|
69
|
+
delete: ['delete', 'cmd+backspace'],
|
|
70
|
+
deleteWord: ['ctrl+delete', 'cmd+alt+backspace', 'ctrl+alt+backspace'],
|
|
71
|
+
deleteSentence: ['ctrl+shift+delete', 'cmd+shift+delete'],
|
|
72
|
+
backspace: ['backspace'],
|
|
73
|
+
backspaceWord: ['ctrl+backspace'],
|
|
74
|
+
backspaceSentence: ['ctrl+shift+backspace', 'cmd+shift+backspace']
|
|
75
|
+
};
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### :bug: Bug Fix
|
|
79
|
+
|
|
80
|
+
- fixed sync between WYSIWYG and source editor
|
|
81
|
+
|
|
82
|
+
## 3.10.1
|
|
83
|
+
|
|
84
|
+
#### :boom: Breaking Change
|
|
85
|
+
|
|
86
|
+
- Update `TypeScript@4.5.2`
|
|
87
|
+
- In `IJodit.getEditorValue` added second argument for using with `afterGetValueFromEditor` event.
|
|
88
|
+
You can see example in `source` plugin.
|
|
89
|
+
- In UIButton `state.status` changed to `state.variant`
|
|
90
|
+
- `beforeClose` event can prevent closing the dialog
|
|
91
|
+
|
|
92
|
+
```js
|
|
93
|
+
const dialog = new Jodit.modules.Dialog();
|
|
94
|
+
dialog.setContent('Hello world!').open();
|
|
95
|
+
dialog.e.on('beforeClose', () => confirm('Are you sure?'));
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### :bug: Bug Fix
|
|
99
|
+
|
|
100
|
+
- fix: Proxy blur event to parent triggered on the ACE editor
|
|
101
|
+
|
|
12
102
|
## 3.9.5
|
|
13
103
|
|
|
14
104
|
#### :rocket: New Feature
|
|
15
105
|
|
|
16
106
|
- [Feature request: Open the inline toolbar without having to highlight text. #600](https://github.com/xdan/jodit/issues/600)
|
|
17
|
-
Allow open inline toolbar. This feature is implemented on the basis of the `inline-popup` plugin,
|
|
18
|
-
|
|
19
|
-
|
|
107
|
+
Allow open inline toolbar. This feature is implemented on the basis of the `inline-popup` plugin, a setting has been
|
|
108
|
+
added to it: `popup.toolbar`, which lists the buttons that will be shown in such a toolbar. Added the `showInline`
|
|
109
|
+
method to the `ToolbarEditorCollection` itself:
|
|
20
110
|
|
|
21
111
|
```js
|
|
22
112
|
const editor = Jodit.make('#editor', {
|
|
@@ -51,12 +141,16 @@ console.log(Jodit.modules.UIButton.componentName); // jodit-ui-button
|
|
|
51
141
|
Boolean option `filebrowser.saveStateInStorage` split to dictionary:
|
|
52
142
|
|
|
53
143
|
```ts
|
|
54
|
-
interface IFileBrowserOptions
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
144
|
+
interface IFileBrowserOptions
|
|
145
|
+
|
|
146
|
+
:
|
|
147
|
+
{
|
|
148
|
+
}
|
|
149
|
+
saveStateInStorage: false | {
|
|
150
|
+
storeLastOpenedFolder? : boolean;
|
|
151
|
+
storeView? : boolean;
|
|
152
|
+
storeSortBy? : boolean;
|
|
153
|
+
};
|
|
60
154
|
}
|
|
61
155
|
```
|
|
62
156
|
|
|
@@ -66,8 +160,12 @@ By default:
|
|
|
66
160
|
{
|
|
67
161
|
saveStateInStorage: {
|
|
68
162
|
storeLastOpenedFolder: true,
|
|
69
|
-
|
|
70
|
-
|
|
163
|
+
storeView
|
|
164
|
+
:
|
|
165
|
+
true,
|
|
166
|
+
storeSortBy
|
|
167
|
+
:
|
|
168
|
+
true
|
|
71
169
|
}
|
|
72
170
|
}
|
|
73
171
|
```
|
|
@@ -93,9 +191,9 @@ Jodit.make('#editor', {
|
|
|
93
191
|
```
|
|
94
192
|
|
|
95
193
|
- [Spacer in Button Toolbar](https://github.com/xdan/jodit/issues/713)
|
|
96
|
-
In addition to the `|` metacharacters and `\n` which stand for separator and newline, the `---` metacharacter has
|
|
97
|
-
which allows you to add a spacer element which pushes all buttons behind the spacer to the right side of the
|
|
98
|
-
and creates space in the middle.
|
|
194
|
+
In addition to the `|` metacharacters and `\n` which stand for separator and newline, the `---` metacharacter has
|
|
195
|
+
appeared, which allows you to add a spacer element which pushes all buttons behind the spacer to the right side of the
|
|
196
|
+
toolbar and creates space in the middle.
|
|
99
197
|
|
|
100
198
|
```js
|
|
101
199
|
Jodit.make('#editor', {
|
|
@@ -133,7 +231,8 @@ Jodit.make('#editor', {
|
|
|
133
231
|
|
|
134
232
|
#### :boom: Breaking Change
|
|
135
233
|
|
|
136
|
-
- The style `table-layout: fixed` has been removed from tables. When inserting a table, the width of the columns is
|
|
234
|
+
- The style `table-layout: fixed` has been removed from tables. When inserting a table, the width of the columns is
|
|
235
|
+
immediately set for it.
|
|
137
236
|
|
|
138
237
|
## 3.9.1
|
|
139
238
|
|
|
@@ -171,7 +270,8 @@ await new Ajax(editor, {
|
|
|
171
270
|
url: 'index.php'
|
|
172
271
|
})
|
|
173
272
|
.send()˚
|
|
174
|
-
|
|
273
|
+
.
|
|
274
|
+
then(resp => resp.json()); // {success: true, data: ...}
|
|
175
275
|
```
|
|
176
276
|
|
|
177
277
|
- In `.npmignore` added:
|
|
@@ -225,7 +325,8 @@ while (!next2.done) {
|
|
|
225
325
|
|
|
226
326
|
#### :house: Internal
|
|
227
327
|
|
|
228
|
-
- The build system is divided into modules and is now located in the 'build-system' folder, the `src/utils` folder has
|
|
328
|
+
- The build system is divided into modules and is now located in the 'build-system' folder, the `src/utils` folder has
|
|
329
|
+
been moved to it.
|
|
229
330
|
|
|
230
331
|
#### :bug: Bug Fix
|
|
231
332
|
|
|
@@ -334,7 +435,8 @@ Dom.isNode(editor.ed.body); // true
|
|
|
334
435
|
#### :rocket: New Feature
|
|
335
436
|
|
|
336
437
|
- Added `KeyArrowOutside`, allowing to go outside an inline element if there is no other element after that.
|
|
337
|
-
- Dictionary of variable values in css, a complete list can be found
|
|
438
|
+
- Dictionary of variable values in css, a complete list can be found
|
|
439
|
+
here https://github.com/xdan/jodit/blob/master/src/styles/variables.less#L25
|
|
338
440
|
```js
|
|
339
441
|
const editor = Jodit.make('#editor', {
|
|
340
442
|
styleValues: {
|
|
@@ -449,12 +551,12 @@ jodit.e.fire('someAsyncLoadedPluginEvent', test => {
|
|
|
449
551
|
|
|
450
552
|
#### :rocket: New Feature
|
|
451
553
|
|
|
452
|
-
- Added `cursorAfterAutofocus=end` option inside `autofocus` plugin.
|
|
453
|
-
|
|
554
|
+
- Added `cursorAfterAutofocus=end` option inside `autofocus` plugin. Allow change default autofocus position. Possible
|
|
555
|
+
values `start`, `end`.
|
|
454
556
|
[autofocus plugin should focus on the end of the text #649](https://github.com/xdan/jodit/issues/649)
|
|
455
557
|
|
|
456
|
-
- Added `saveSelectionOnBlur=true` option inside `autofocus` plugin.
|
|
457
|
-
|
|
558
|
+
- Added `saveSelectionOnBlur=true` option inside `autofocus` plugin. Allow restore position after editor has focus after
|
|
559
|
+
blur.
|
|
458
560
|
|
|
459
561
|
#### :house: Internal
|
|
460
562
|
|
|
@@ -463,8 +565,8 @@ jodit.e.fire('someAsyncLoadedPluginEvent', test => {
|
|
|
463
565
|
#### :boom: Breaking Change
|
|
464
566
|
|
|
465
567
|
- The `Dom`.`wrap` method changed signature - instead IJodit call with ICreate.
|
|
466
|
-
- The `Select`.`restore` method is called with no arguments. It finds the range using the data attribute selector.
|
|
467
|
-
|
|
568
|
+
- The `Select`.`restore` method is called with no arguments. It finds the range using the data attribute selector. In
|
|
569
|
+
the `Select`.`save` method added `silent=false` argument.
|
|
468
570
|
|
|
469
571
|
Earlier
|
|
470
572
|
|
|
@@ -529,9 +631,8 @@ editor.s.restore();
|
|
|
529
631
|
|
|
530
632
|
#### :rocket: New Feature
|
|
531
633
|
|
|
532
|
-
- Added the ability to open a file browser and any dialog in a new window.
|
|
533
|
-
|
|
534
|
-
For example, this can be done so that the file browser opens in a separate popup window.
|
|
634
|
+
- Added the ability to open a file browser and any dialog in a new window. To do this, you need to define
|
|
635
|
+
the `ownerWindow` field. For example, this can be done so that the file browser opens in a separate popup window.
|
|
535
636
|
|
|
536
637
|
```js
|
|
537
638
|
const editor = Jodit.make('#editor', {
|
|
@@ -585,8 +686,8 @@ editor.e.on('getInstanceFileBrowser', options => {
|
|
|
585
686
|
|
|
586
687
|
#### :boom: Breaking Change
|
|
587
688
|
|
|
588
|
-
- Removed options: `useIframeResizer`, `useImgResizer`, `useTableResizer` from `resizer` plugin.
|
|
589
|
-
|
|
689
|
+
- Removed options: `useIframeResizer`, `useImgResizer`, `useTableResizer` from `resizer` plugin. Instead,
|
|
690
|
+
added `allowResizeTags`.
|
|
590
691
|
|
|
591
692
|
```js
|
|
592
693
|
Config.prototype.allowResizeTags = ['img', 'iframe', 'table', 'jodit'];
|
|
@@ -699,8 +800,7 @@ class UIBtn extends UIElement {
|
|
|
699
800
|
return button;
|
|
700
801
|
}
|
|
701
802
|
|
|
702
|
-
@autobind
|
|
703
|
-
onClick() {
|
|
803
|
+
@autobind onClick() {
|
|
704
804
|
alert('click');
|
|
705
805
|
}
|
|
706
806
|
}
|
|
@@ -716,8 +816,7 @@ class UIBtn extends UIElement {
|
|
|
716
816
|
return `<button class="&__button" style="color:red"></button>`;
|
|
717
817
|
}
|
|
718
818
|
|
|
719
|
-
@watch('container:click')
|
|
720
|
-
onClick() {
|
|
819
|
+
@watch('container:click') onClick() {
|
|
721
820
|
alert('click');
|
|
722
821
|
}
|
|
723
822
|
}
|
|
@@ -799,13 +898,15 @@ console.log(item.options); // {some: false}
|
|
|
799
898
|
|
|
800
899
|
- [Clear formatting control does not clear all styles (keeps underline and strikethrough) #575](https://github.com/xdan/jodit/issues/575)
|
|
801
900
|
- [Reset in size change not rescaling image #568](https://github.com/xdan/jodit/issues/568)
|
|
802
|
-
- [Backspace in beginning of a
|
|
901
|
+
- [Backspace in beginning of a _
|
|
902
|
+
styled_ line does not affect the line positioning #567](https://github.com/xdan/jodit/issues/567)
|
|
803
903
|
- [Table cell elements are always left-aligned #550](https://github.com/xdan/jodit/issues/550)
|
|
804
904
|
- [editor.destruct throws error #543](https://github.com/xdan/jodit/issues/543)
|
|
805
905
|
- [How I can get Iframe without parent element <jodit>...</jodit> #540](https://github.com/xdan/jodit/issues/540)
|
|
806
906
|
- [Layout bug and drag&drop image loading #536](https://github.com/xdan/jodit/issues/536)
|
|
807
907
|
- [Popups are not showing at all on Legacy Edge #531](https://github.com/xdan/jodit/issues/531)
|
|
808
|
-
- Fixed a bug when the search bar was shown in the scrolling editor, the editor was scrolled up. And the search box was
|
|
908
|
+
- Fixed a bug when the search bar was shown in the scrolling editor, the editor was scrolled up. And the search box was
|
|
909
|
+
not in sticky mode.
|
|
809
910
|
|
|
810
911
|
#### :rocket: New Feature
|
|
811
912
|
|
|
@@ -830,16 +931,18 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
|
|
|
830
931
|
|
|
831
932
|
##### New options in `link.plugin`
|
|
832
933
|
|
|
833
|
-
- @property {"input"|"select"|""} link.modeClassName="input" Use an input text to ask the classname or a select or not
|
|
934
|
+
- @property {"input"|"select"|""} link.modeClassName="input" Use an input text to ask the classname or a select or not
|
|
935
|
+
ask
|
|
834
936
|
- @property {boolean} link.selectMultipleClassName=true Allow multiple choises (to use with modeClassName="select")
|
|
835
937
|
- @property {number} link.selectSizeClassName=3 The size of the select (to use with modeClassName="select")
|
|
836
|
-
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
938
|
+
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
|
|
939
|
+
modeClassName="select")
|
|
837
940
|
- ex: [
|
|
838
|
-
-
|
|
839
|
-
-
|
|
840
|
-
-
|
|
841
|
-
-
|
|
842
|
-
-
|
|
941
|
+
- { value: "", text: "" },
|
|
942
|
+
- { value: "val1", text: "text1" },
|
|
943
|
+
- { value: "val2", text: "text2" },
|
|
944
|
+
- { value: "val3", text: "text3" }
|
|
945
|
+
- ]
|
|
843
946
|
PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
|
|
844
947
|
|
|
845
948
|
##### New option `statusbar: boolean = true`
|
|
@@ -857,10 +960,10 @@ console.log(editor.statusbar.isShown); // true
|
|
|
857
960
|
|
|
858
961
|
##### Buttons groups
|
|
859
962
|
|
|
860
|
-
The `buttons` option can contain named groups of buttons.
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
963
|
+
The `buttons` option can contain named groups of buttons. Each plugin decides which button belongs to which group. Thus,
|
|
964
|
+
if you turn off the plugin, then its buttons will not be shown either. Available
|
|
965
|
+
groups: ["source", "font-style", "script", "list", "indent", "font", "color", "media", "state", "clipboard", "insert", "history", "search", "other", "info"]
|
|
966
|
+
;
|
|
864
967
|
|
|
865
968
|
```js
|
|
866
969
|
const editor = Jodit.make('#editor', {
|
|
@@ -888,9 +991,8 @@ Jodit.plugins.add('somePlugin', function (editor) {
|
|
|
888
991
|
|
|
889
992
|
##### Hotkeys for BackSpace and Delete and remove part of text
|
|
890
993
|
|
|
891
|
-
Added hotkey settings for Delete and Backspace buttons.
|
|
892
|
-
|
|
893
|
-
Issue: [https://github.com/xdan/jodit/issues/532](https://github.com/xdan/jodit/issues/532)
|
|
994
|
+
Added hotkey settings for Delete and Backspace buttons. And added hotkey `ctrl+backspace` for removing left part of
|
|
995
|
+
text. Issue: [https://github.com/xdan/jodit/issues/532](https://github.com/xdan/jodit/issues/532)
|
|
894
996
|
|
|
895
997
|
```js
|
|
896
998
|
Jodit.make('#editor', {
|
|
@@ -932,10 +1034,9 @@ editor.events
|
|
|
932
1034
|
|
|
933
1035
|
#### :rocket: New Feature
|
|
934
1036
|
|
|
935
|
-
Added `extraIcons` option.
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
But for a declarative declaration, you can use this option.
|
|
1037
|
+
Added `extraIcons` option. By default, you can only install an icon from the Jodit suite. You can add your icon to the
|
|
1038
|
+
set using the `Jodit.modules.Icon.set (name, svg Code)` method. But for a declarative declaration, you can use this
|
|
1039
|
+
option.
|
|
939
1040
|
|
|
940
1041
|
```js
|
|
941
1042
|
Jodit.modules.Icon.set('someIcon', '<svg><path.../></svg>');
|
|
@@ -1152,8 +1253,8 @@ https://github.com/xdan/jodit/issues/359
|
|
|
1152
1253
|
### Features
|
|
1153
1254
|
|
|
1154
1255
|
- All `less` variables were replaced to css custom properties for modern browsers.
|
|
1155
|
-
- Added `WrapTextNodes` plugin - it wrap all alone text node(or inline elements) inside `options.enter` element.
|
|
1156
|
-
|
|
1256
|
+
- Added `WrapTextNodes` plugin - it wrap all alone text node(or inline elements) inside `options.enter` element. You can
|
|
1257
|
+
disable this behaviour:
|
|
1157
1258
|
|
|
1158
1259
|
```js
|
|
1159
1260
|
const editor = Jodit.make('#editor', {
|
|
@@ -1186,8 +1287,7 @@ var editor = new Jodit(root.getElementById('edit'), {
|
|
|
1186
1287
|
editor.value = '<p>start</p>';
|
|
1187
1288
|
```
|
|
1188
1289
|
|
|
1189
|
-
- From `NativeEvent.on` method was removed `selector` argument. It was `jQuery.live` style.
|
|
1190
|
-
Example:
|
|
1290
|
+
- From `NativeEvent.on` method was removed `selector` argument. It was `jQuery.live` style. Example:
|
|
1191
1291
|
|
|
1192
1292
|
```html
|
|
1193
1293
|
<div class="test">
|
|
@@ -1224,8 +1324,7 @@ const editor = Jodit.make('#editor');
|
|
|
1224
1324
|
editor.s.applyStyle({ color: 'red' }); // will add to all selection text - red color
|
|
1225
1325
|
```
|
|
1226
1326
|
|
|
1227
|
-
- `FileBrowser`, `Dialog` etc. modules which extend `View` has only one argument in the constructor - options.
|
|
1228
|
-
Before:
|
|
1327
|
+
- `FileBrowser`, `Dialog` etc. modules which extend `View` has only one argument in the constructor - options. Before:
|
|
1229
1328
|
|
|
1230
1329
|
```js
|
|
1231
1330
|
const editor = Jodit.make('#editor');
|
|
@@ -1263,8 +1362,7 @@ editor.e.on('beforeDestruct', () => {
|
|
|
1263
1362
|
});
|
|
1264
1363
|
```
|
|
1265
1364
|
|
|
1266
|
-
- Split `table` plugin on `select-cells` and `resize-cells` plugins. `useTableProcessor` was removed.
|
|
1267
|
-
Instead, use
|
|
1365
|
+
- Split `table` plugin on `select-cells` and `resize-cells` plugins. `useTableProcessor` was removed. Instead, use
|
|
1268
1366
|
|
|
1269
1367
|
```js
|
|
1270
1368
|
Jodit.make('#editor', {
|
|
@@ -1280,8 +1378,8 @@ Jodit.make('#editor', {
|
|
|
1280
1378
|
|
|
1281
1379
|
- All `less` files were moved near with TS. Class naming was changed closer to BEM.
|
|
1282
1380
|
- Removed `PopupList` and `Popup`. Instead, use only `PopupMenu`.
|
|
1283
|
-
- Added `ui.button` and `ui.list` for working with buttons. `toolbar.button` extends `ui.button`.
|
|
1284
|
-
|
|
1381
|
+
- Added `ui.button` and `ui.list` for working with buttons. `toolbar.button` extends `ui.button`. UIButton - is
|
|
1382
|
+
reactive:
|
|
1285
1383
|
|
|
1286
1384
|
```js
|
|
1287
1385
|
const button = new UIButton();
|
|
@@ -1299,8 +1397,7 @@ button
|
|
|
1299
1397
|
.appendTo(document.body); // will append it inside the body
|
|
1300
1398
|
```
|
|
1301
1399
|
|
|
1302
|
-
- In `tsconfig` added decorators supports.
|
|
1303
|
-
Methods that need binding binds with `@autobind` decorator.
|
|
1400
|
+
- In `tsconfig` added decorators supports. Methods that need binding binds with `@autobind` decorator.
|
|
1304
1401
|
- Added `watch` decorator.
|
|
1305
1402
|
- All filenames were renamed to kebab-case.
|
|
1306
1403
|
- Added short aliases for. Can be used as chain - `this.j.e.on`
|
|
@@ -1386,7 +1483,8 @@ const editor = getJodit({
|
|
|
1386
1483
|
});
|
|
1387
1484
|
```
|
|
1388
1485
|
|
|
1389
|
-
- Added deprecated mechanism. Some methods will not be removed and only will be marked as deprecated until major
|
|
1486
|
+
- Added deprecated mechanism. Some methods will not be removed and only will be marked as deprecated until major
|
|
1487
|
+
release. [#330](https://github.com/xdan/jodit/issues/330)
|
|
1390
1488
|
|
|
1391
1489
|
## 3.3.16
|
|
1392
1490
|
|
|
@@ -1420,7 +1518,8 @@ Fixed SPLIT_MODE
|
|
|
1420
1518
|
|
|
1421
1519
|
### Feature
|
|
1422
1520
|
|
|
1423
|
-
Added `editHTMLDocumentMode` in order to allow the user to edit the entire
|
|
1521
|
+
Added `editHTMLDocumentMode` in order to allow the user to edit the entire
|
|
1522
|
+
document [#241](https://github.com/xdan/jodit/issues/241).
|
|
1424
1523
|
|
|
1425
1524
|
Also added `iframeTitle` and `iframeDoctype` options
|
|
1426
1525
|
|
|
@@ -1474,8 +1573,8 @@ Fixed bug with ProgressBar - it simply does not work(
|
|
|
1474
1573
|
|
|
1475
1574
|
### Feature
|
|
1476
1575
|
|
|
1477
|
-
Source plugin was separated on several classes. Now you can choose SourceEditor
|
|
1478
|
-
|
|
1576
|
+
Source plugin was separated on several classes. Now you can choose SourceEditor or make
|
|
1577
|
+
yourself (https://github.com/xdan/jodit/issues/242)
|
|
1479
1578
|
|
|
1480
1579
|
> Before
|
|
1481
1580
|
|
|
@@ -1578,6 +1677,7 @@ Inside plugin, you can use several fields:
|
|
|
1578
1677
|
class Emoji {
|
|
1579
1678
|
hasStyle = true; //
|
|
1580
1679
|
requires = ['autocomplete'];
|
|
1680
|
+
|
|
1581
1681
|
init(editor) {
|
|
1582
1682
|
// this code will be execute only after autocomplete.init
|
|
1583
1683
|
}
|
|
@@ -1613,13 +1713,11 @@ extraPlugins option allows appending in editor extra plugins from npm, bower etc
|
|
|
1613
1713
|
|
|
1614
1714
|
### Build System
|
|
1615
1715
|
|
|
1616
|
-
In Build system was added gulp subsystem to build extra plugins.
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
folder (eg `build/plugins/emoji/`).
|
|
1716
|
+
In Build system was added gulp subsystem to build extra plugins. You can make extra plugins like `plugins/example` and
|
|
1717
|
+
after build, this plugin will not be inside `jodit.min.js` file. It will be in separate folder (
|
|
1718
|
+
eg `build/plugins/emoji/`).
|
|
1620
1719
|
|
|
1621
|
-
Also in root you can find `make.js` file for install your plugin
|
|
1622
|
-
in build system.
|
|
1720
|
+
Also in root you can find `make.js` file for install your plugin in build system.
|
|
1623
1721
|
|
|
1624
1722
|
---
|
|
1625
1723
|
|
|
@@ -1642,8 +1740,8 @@ var editor = new Jodir('.editor', {
|
|
|
1642
1740
|
|
|
1643
1741
|
- Added `useIframeResizer` option for resize IFRAME tag
|
|
1644
1742
|

|
|
1645
|
-
- Added `offsetTopForAssix` option.
|
|
1646
|
-
|
|
1743
|
+
- Added `offsetTopForAssix` option. For example, in Joomla, the top menu bar closes Jodit toolbar when scrolling.
|
|
1744
|
+
Therefore, it is necessary to move the toolbar Jodit by this amount
|
|
1647
1745
|
|
|
1648
1746
|
```javascript
|
|
1649
1747
|
var editor = new Jodit('#editor', {
|
|
@@ -1662,8 +1760,9 @@ Added `Embed video` button. Added `vimeo` or `youtube` video embeded code.
|
|
|
1662
1760
|
|
|
1663
1761
|
### 2.5.54
|
|
1664
1762
|
|
|
1665
|
-
When you insert text into the editor from another site, all the images are from a remote site. Before Jodit, it was
|
|
1666
|
-
|
|
1763
|
+
When you insert text into the editor from another site, all the images are from a remote site. Before Jodit, it was
|
|
1764
|
+
quite uncomfortable: first I had to download the image from a remote resource, and then upload it to your site, then
|
|
1765
|
+
replace the image in the editor. In 2.5.54 it can be done in 3 clicks
|
|
1667
1766
|
|
|
1668
1767
|

|
|
1669
1768
|
|
|
@@ -1732,7 +1831,8 @@ Jodit.Confirm('Are you sure?', function (yes) {
|
|
|
1732
1831
|
|
|
1733
1832
|
### 2.5.49
|
|
1734
1833
|
|
|
1735
|
-
First step for Mobile-friendly [sizeLG,sizeMD,sizeSM](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#sizeLG) and
|
|
1834
|
+
First step for Mobile-friendly [sizeLG,sizeMD,sizeSM](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#sizeLG) and
|
|
1835
|
+
sets of buttons for different sizes editors.
|
|
1736
1836
|
|
|
1737
1837
|
> `Note`. this is not the width of the device, the width of the editor
|
|
1738
1838
|
|
|
@@ -1859,7 +1959,8 @@ var editor = new Jodit('#some-editor', {
|
|
|
1859
1959
|

|
|
1860
1960
|
|
|
1861
1961
|
- Added [Helper.normalizeColor](http://xdsoft.net/jodit/doc/module-Helper.html#~normalizeColor)
|
|
1862
|
-
- Fixed [Helper.colorToHex](http://xdsoft.net/jodit/doc/module-Helper.html#~colorToHex) now for transparent color it
|
|
1962
|
+
- Fixed [Helper.colorToHex](http://xdsoft.net/jodit/doc/module-Helper.html#~colorToHex) now for transparent color it
|
|
1963
|
+
will return NaN
|
|
1863
1964
|
|
|
1864
1965
|
### 2.5.45
|
|
1865
1966
|
|
|
@@ -1874,7 +1975,8 @@ Fix a few bugs in [JJE](http://xdsoft.net/jodit/#extesions)
|
|
|
1874
1975
|
### 2.5.40
|
|
1875
1976
|
|
|
1876
1977
|
- In [Helper](http://xdsoft.net/jodit/doc/module-Helper.html) module added [isHTML] method. Used plugin `insertHTML`
|
|
1877
|
-
- Added simple plugin `insertHTML` and him option `askBeforePasteHTML` - Ask before paste HTML in WYSIWYG mode. Try
|
|
1978
|
+
- Added simple plugin `insertHTML` and him option `askBeforePasteHTML` - Ask before paste HTML in WYSIWYG mode. Try
|
|
1979
|
+
insert in WYSIWYG mode some HTML source
|
|
1878
1980
|
|
|
1879
1981
|
```javascript
|
|
1880
1982
|
(function ($) {
|
|
@@ -1936,7 +2038,8 @@ Fix [#issue 11](https://github.com/xdan/jodit/issues/11) in `file:` mode CDN Cod
|
|
|
1936
2038
|
|
|
1937
2039
|
### 2.5.37
|
|
1938
2040
|
|
|
1939
|
-
- Fixed bug in [`Beautifier`](http://xdsoft.net/jodit/doc/module-Beautifier.html) plugin. When in `source` mode, start
|
|
2041
|
+
- Fixed bug in [`Beautifier`](http://xdsoft.net/jodit/doc/module-Beautifier.html) plugin. When in `source` mode, start
|
|
2042
|
+
comment enter `<!--` Browser stops responding.
|
|
1940
2043
|
- Added `tiles` and `list` switcher in filebrowser
|
|
1941
2044
|
|
|
1942
2045
|
### 2.5.36
|
|
@@ -1964,8 +2067,10 @@ Jodit.Confirm('Are you sure?', 'Confirm', function (success) {
|
|
|
1964
2067
|
|
|
1965
2068
|
### 2.5.27
|
|
1966
2069
|
|
|
1967
|
-
- Fixed IE11's
|
|
1968
|
-
|
|
2070
|
+
- Fixed IE11's
|
|
2071
|
+
bug [http://xdsoft.net/jodit/doc/module-Jodit.html#comment-2866837441](http://xdsoft.net/jodit/doc/module-Jodit.html#comment-2866837441)
|
|
2072
|
+
- Added [textIcons](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#texticons) options - Use text instead of
|
|
2073
|
+
icons. In IE9 it is default - true [Example](http://xdsoft.net/jodit/#example-text-icons)
|
|
1969
2074
|
|
|
1970
2075
|
```javascript
|
|
1971
2076
|
var editor = new Jodit('#example2_0', {
|
|
@@ -1990,7 +2095,11 @@ var editor = new Jodit('#example2_0', {
|
|
|
1990
2095
|
Dom Module is now compatible with jQuery objects
|
|
1991
2096
|
|
|
1992
2097
|
```javascript
|
|
1993
|
-
var a = jQuery("<a href="
|
|
2098
|
+
var a = jQuery("<a href="
|
|
2099
|
+
#link
|
|
2100
|
+
">Link</a>"
|
|
2101
|
+
)
|
|
2102
|
+
;
|
|
1994
2103
|
jodit.modules.Dom('.selector').append(a);
|
|
1995
2104
|
jodit.modules.Dom(jQuery("#someid")).val();
|
|
1996
2105
|
jodit.modules.Dom("#someid").val();
|
|
@@ -2001,14 +2110,16 @@ But you must remember that Jodit.modules.Dom! = JQuery
|
|
|
2001
2110
|
### 2.5.23
|
|
2002
2111
|
|
|
2003
2112
|
- Added `expand button` In filebrowser
|
|
2004
|
-
- Added [fullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog)
|
|
2113
|
+
- Added [fullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog)
|
|
2114
|
+
and [fullsizeButton](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#dialog) options
|
|
2005
2115
|
|
|
2006
2116
|
### 2.5.20
|
|
2007
2117
|
|
|
2008
2118
|
- Fix [Dom.prev](http://xdsoft.net/jodit/doc/module-Dom.html#prev) method
|
|
2009
2119
|
- Added navigation and select in preview
|
|
2010
2120
|

|
|
2011
|
-
- Added [showSelectButtonInPreview](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2121
|
+
- Added [showSelectButtonInPreview](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2122
|
+
and [showPreviewNavigation](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser)
|
|
2012
2123
|
|
|
2013
2124
|
### 2.5.19
|
|
2014
2125
|
|
|
@@ -2091,7 +2202,9 @@ Added edit button in Image Properties Dialog
|
|
|
2091
2202
|
### 2.5.1
|
|
2092
2203
|
|
|
2093
2204
|
- Dom module was rewritten and was fixed afew bugs
|
|
2094
|
-
- In [OEM and Pro](http://xdsoft.net/jodit/#download)
|
|
2205
|
+
- In [OEM and Pro](http://xdsoft.net/jodit/#download)
|
|
2206
|
+
added [Image Editor module](http://xdsoft.net/jodit/doc/module-ImageEditor.html) resize and crop image. You can
|
|
2207
|
+
try [here](http://xdsoft.net/jodit/)
|
|
2095
2208
|

|
|
2096
2209
|

|
|
2097
2210
|
|
|
@@ -2124,7 +2237,8 @@ Fixed bug with insert `OL` tag and Fixed Dom module work with Text node
|
|
|
2124
2237
|
|
|
2125
2238
|
### 2.4.12
|
|
2126
2239
|
|
|
2127
|
-
Added [toolbarButtonSize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#toolbarbuttonsize) Size of icons in the
|
|
2240
|
+
Added [toolbarButtonSize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#toolbarbuttonsize) Size of icons in the
|
|
2241
|
+
toolbar (can be "small", "middle", "large")
|
|
2128
2242
|
|
|
2129
2243
|
```javascript
|
|
2130
2244
|
var editor = new Jodit('#editor', {
|
|
@@ -2143,9 +2257,11 @@ editor.s.insertNode(node);
|
|
|
2143
2257
|
```
|
|
2144
2258
|
|
|
2145
2259
|
- Added [link](http://xdsoft.net/jodit/doc/module-link.html) plugin. And its options
|
|
2146
|
-
- [processPastedLink](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Wrap inserted link
|
|
2260
|
+
- [processPastedLink](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Wrap inserted link
|
|
2261
|
+
in `<a href="link">link</a>`
|
|
2147
2262
|
- [openLinkDialogAfterPost](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) Open Link dialog after post
|
|
2148
|
-
- [removeLinkAfterFormat](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) When the button is pressed to
|
|
2263
|
+
- [removeLinkAfterFormat](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#link) When the button is pressed to
|
|
2264
|
+
clean format, if it was done on the link is removed like command `unlink`
|
|
2149
2265
|
- Replace format icon
|
|
2150
2266
|
|
|
2151
2267
|
### 2.4.8
|
|
@@ -2154,8 +2270,7 @@ Fixed Base icons [issue](https://gist.github.com/leonderijke/c5cf7c5b2e424c0061d
|
|
|
2154
2270
|
|
|
2155
2271
|
### 2.4.6
|
|
2156
2272
|
|
|
2157
|
-
Fast Fixed in JJE
|
|
2158
|
-
Fixed a lot of bugs in Jodit
|
|
2273
|
+
Fast Fixed in JJE Fixed a lot of bugs in Jodit
|
|
2159
2274
|
|
|
2160
2275
|
### 2.4.1
|
|
2161
2276
|
|
|
@@ -2170,8 +2285,10 @@ Fixed a lot of bugs in Jodit
|
|
|
2170
2285
|
### 2.3.59
|
|
2171
2286
|
|
|
2172
2287
|
- Added [Cookie](http://xdsoft.net/jodit/doc/module-Cookie.html) module
|
|
2173
|
-
- Added [saveModeInCookie](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#savemodeincookie) if it is true that
|
|
2174
|
-
|
|
2288
|
+
- Added [saveModeInCookie](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#savemodeincookie) if it is true that
|
|
2289
|
+
the current mode is saved in a cookie , and is restored after a reload of the page
|
|
2290
|
+
- In Joomla Jodit Editor(JJE) added corresponding option
|
|
2291
|
+
saveModeInCookie [Download Jodit Joomla editor](http://xdsoft.net/jodit/release/joomla.zip)
|
|
2175
2292
|
|
|
2176
2293
|
### 2.3.57
|
|
2177
2294
|
|
|
@@ -2180,20 +2297,26 @@ Fixed a lot of bugs in Jodit
|
|
|
2180
2297
|
|
|
2181
2298
|
### 2.3.53
|
|
2182
2299
|
|
|
2183
|
-
- Added option [cleanHTML.cleanOnPaste](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#cleanhtml) The
|
|
2184
|
-
|
|
2300
|
+
- Added option [cleanHTML.cleanOnPaste](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#cleanhtml) The
|
|
2301
|
+
plugin [cleanHTML](http://xdsoft.net/jodit/doc/module-cleanHTML.html) automatically cleans up content from Microsoft
|
|
2302
|
+
Word and other HTML sources to ensure clean, compliant content that matches the look and feel of the site.
|
|
2303
|
+
- 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)
|
|
2304
|
+
events
|
|
2185
2305
|
|
|
2186
2306
|
### 2.3.49
|
|
2187
2307
|
|
|
2188
|
-
Added [iframeBaseUrl](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframebaseurl) option - Base URL where the
|
|
2308
|
+
Added [iframeBaseUrl](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframebaseurl) option - Base URL where the
|
|
2309
|
+
root directory for [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#iframe) mode
|
|
2189
2310
|
|
|
2190
2311
|
### 2.3.48
|
|
2191
2312
|
|
|
2192
|
-
Added [spellcheck](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#spellcheck) option specifies whether the editor
|
|
2313
|
+
Added [spellcheck](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#spellcheck) option specifies whether the editor
|
|
2314
|
+
is to have its spelling and grammar checked or not
|
|
2193
2315
|
|
|
2194
2316
|
### 2.3.47
|
|
2195
2317
|
|
|
2196
|
-
Added [removeEmptyBlocks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#removeemptyblocks) option - Remove empty
|
|
2318
|
+
Added [removeEmptyBlocks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#removeemptyblocks) option - Remove empty
|
|
2319
|
+
blocks
|
|
2197
2320
|
|
|
2198
2321
|
```javascript
|
|
2199
2322
|
var editor = new Jodit('#editor', {
|
|
@@ -2214,11 +2337,11 @@ console.log(editor.val()); //''
|
|
|
2214
2337
|
|
|
2215
2338
|
### 2.3.44
|
|
2216
2339
|
|
|
2217
|
-
Added [direction](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#direction) option.
|
|
2218
|
-
|
|
2219
|
-
Allowed values are:
|
|
2340
|
+
Added [direction](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#direction) option. The writing direction of the
|
|
2341
|
+
language which is used to create editor content. Allowed values are:
|
|
2220
2342
|
|
|
2221
|
-
- '' (an empty string) – Indicates that content direction will be the same as either the editor UI direction or the page
|
|
2343
|
+
- '' (an empty string) – Indicates that content direction will be the same as either the editor UI direction or the page
|
|
2344
|
+
element direction.
|
|
2222
2345
|
- 'ltr' – Indicates a Left-To-Right text direction (like in English).
|
|
2223
2346
|
- 'rtl' – Indicates a Right-To-Left text direction (like in Arabic).
|
|
2224
2347
|
|
|
@@ -2228,18 +2351,23 @@ Fixed styles bugs
|
|
|
2228
2351
|
|
|
2229
2352
|
### 2.3.41
|
|
2230
2353
|
|
|
2231
|
-
When [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) === false show 4
|
|
2354
|
+
When [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) === false show 4
|
|
2355
|
+
colums in filelist
|
|
2232
2356
|
|
|
2233
2357
|
### 2.3.40
|
|
2234
2358
|
|
|
2235
|
-
- Added [filebrowser.moveFolder](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2236
|
-
|
|
2237
|
-
- Added [filebrowser.
|
|
2359
|
+
- Added [filebrowser.moveFolder](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2360
|
+
move folder
|
|
2361
|
+
- Added [filebrowser.moveFile](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option. Allow/deny
|
|
2362
|
+
move file
|
|
2363
|
+
- Added [filebrowser.showFoldersPanel](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#filebrowser) option.
|
|
2364
|
+
Hide/show folders panel in filebrowser
|
|
2238
2365
|
|
|
2239
2366
|
### 2.3.39
|
|
2240
2367
|
|
|
2241
|
-
Fixed [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html) uploader's options bug.
|
|
2242
|
-
|
|
2368
|
+
Fixed [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html) uploader's options bug. Previously , you had to
|
|
2369
|
+
either use a general [Uploader](http://xdsoft.net/jodit/doc/module-Uploader.html) module settings , or override them
|
|
2370
|
+
completely
|
|
2243
2371
|
|
|
2244
2372
|
```javascript
|
|
2245
2373
|
var editor = new Jodit('.redactor', {
|
|
@@ -2302,7 +2430,8 @@ editor.events.fire('toggleFullsize', [true]); // fullsize
|
|
|
2302
2430
|
editor.events.fire('toggleFullsize', [false]); // usual mode
|
|
2303
2431
|
```
|
|
2304
2432
|
|
|
2305
|
-
- Added [globalFullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#globalFullsize) (default `true`) if true,
|
|
2433
|
+
- Added [globalFullsize](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#globalFullsize) (default `true`) if true,
|
|
2434
|
+
after `fullsize` - all parents element get `jodit_fullsize_box` class (z-index: 100000 !important;)
|
|
2306
2435
|
- Fixed focus bug
|
|
2307
2436
|
|
|
2308
2437
|
### 2.3.35
|
|
@@ -2321,32 +2450,37 @@ Jodit.modules.Dom('.idclass').css('margin-top'); //now it returns int `20`
|
|
|
2321
2450
|
|
|
2322
2451
|
### 2.3.33
|
|
2323
2452
|
|
|
2324
|
-
- Fixed placeholder style. Placeholder placed in a separate
|
|
2453
|
+
- Fixed placeholder style. Placeholder placed in a separate
|
|
2454
|
+
module [Placeholder](http://xdsoft.net/jodit/doc/module-Placeholder.html)
|
|
2325
2455
|
- Added [showPlaceholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#showplaceholder) option
|
|
2326
2456
|
- Added [useInputsPlaceholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#useinputsplaceholder) option
|
|
2327
2457
|
- Added [placeholder](http://xdsoft.net/jodit/doc/module-Placeholder.html#placeholder) option
|
|
2328
2458
|
|
|
2329
2459
|
### 2.3.32
|
|
2330
2460
|
|
|
2331
|
-
Added [uploader.data](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#uploader) option. Data to be sent to the
|
|
2461
|
+
Added [uploader.data](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#uploader) option. Data to be sent to the
|
|
2462
|
+
server like POST parameters
|
|
2332
2463
|
|
|
2333
2464
|
### 2.3.31
|
|
2334
2465
|
|
|
2335
|
-
Added [editorCssClass](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#editorcssclass) option - Class name that
|
|
2336
|
-
Fixed internacionalization
|
|
2466
|
+
Added [editorCssClass](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#editorcssclass) option - Class name that
|
|
2467
|
+
can be appended to the editor Fixed internacionalization
|
|
2337
2468
|
|
|
2338
2469
|
### 2.3.30
|
|
2339
2470
|
|
|
2340
|
-
Added [triggerChangeEvent](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#triggerchangeevent) option
|
|
2341
|
-
|
|
2471
|
+
Added [triggerChangeEvent](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#triggerchangeevent) option Fixed
|
|
2472
|
+
uploader's options - When the uploader is not configured, the editor still displays images upload button
|
|
2342
2473
|
|
|
2343
2474
|
### 2.3.29
|
|
2344
2475
|
|
|
2345
|
-
Add [Dom.defaultAjaxOptions.async](http://xdsoft.net/jodit/doc/module-Dom.html#.__.defaultAjaxOptions) By default, all
|
|
2476
|
+
Add [Dom.defaultAjaxOptions.async](http://xdsoft.net/jodit/doc/module-Dom.html#.__.defaultAjaxOptions) By default, all
|
|
2477
|
+
requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this
|
|
2478
|
+
option to false
|
|
2346
2479
|
|
|
2347
2480
|
### 2.3.28
|
|
2348
2481
|
|
|
2349
|
-
Added `headers` option in {@link module:FileBrowser|FileBrowser} and {@link module:Uploader|Uploader}. But primarily in
|
|
2482
|
+
Added `headers` option in {@link module:FileBrowser|FileBrowser} and {@link module:Uploader|Uploader}. But primarily in
|
|
2483
|
+
{@link module:Dom|Dom}
|
|
2350
2484
|
|
|
2351
2485
|
```javascript
|
|
2352
2486
|
var token = document
|
|
@@ -2394,9 +2528,8 @@ Fixed [#issues1](https://github.com/xdan/jodit/issues/1)
|
|
|
2394
2528
|
|
|
2395
2529
|
### 2.3.24
|
|
2396
2530
|
|
|
2397
|
-
Fixed dialog's module when was opened Promt window, after Enter submit the form and the page reloaded.
|
|
2398
|
-
|
|
2399
|
-
Update [Jodit.i18n](http://xdsoft.net/jodit/doc/module-Jodit.html#.i18n) method. Now it can be used staticly
|
|
2531
|
+
Fixed dialog's module when was opened Promt window, after Enter submit the form and the page reloaded. Fixed connector's
|
|
2532
|
+
bugs Update [Jodit.i18n](http://xdsoft.net/jodit/doc/module-Jodit.html#.i18n) method. Now it can be used staticly
|
|
2400
2533
|
|
|
2401
2534
|
```javascript
|
|
2402
2535
|
var editor = new Jodit('#redactor', {
|
|
@@ -2437,8 +2570,8 @@ Jodit.Alert('Hello world!!!');
|
|
|
2437
2570
|
|
|
2438
2571
|
### 2.3.20
|
|
2439
2572
|
|
|
2440
|
-
Fixed dialog's module zIndex manage.
|
|
2441
|
-
|
|
2573
|
+
Fixed dialog's module zIndex manage. Fixed [Dom.css](http://xdsoft.net/jodit/doc/module-Dom.html#~css) method bug. That
|
|
2574
|
+
example has not worked.
|
|
2442
2575
|
|
|
2443
2576
|
```javascript
|
|
2444
2577
|
Jodit.modules.Dom('.someelement').css('z-index', 1000);
|
|
@@ -2446,12 +2579,15 @@ Jodit.modules.Dom('.someelement').css('z-index', 1000);
|
|
|
2446
2579
|
|
|
2447
2580
|
### 2.3.19
|
|
2448
2581
|
|
|
2449
|
-
Fixed bug in Uploader module when `http://sitename.net/jodit///files/fg.jpg` was
|
|
2582
|
+
Fixed bug in Uploader module when `http://sitename.net/jodit///files/fg.jpg` was
|
|
2583
|
+
replaced `http:/sitename.net/jodit/files/fg.jpg`
|
|
2450
2584
|
|
|
2451
2585
|
### 2.3.18
|
|
2452
2586
|
|
|
2453
|
-
Added `afterInsertImage` event - triggered after image was
|
|
2454
|
-
|
|
2587
|
+
Added `afterInsertImage` event - triggered after image was
|
|
2588
|
+
inserted [selection.insertImage](http://xdsoft.net/jodit/doc/module-Selection.html#-insertImage__anchor). This method
|
|
2589
|
+
can execute from [Filebrowser](http://xdsoft.net/jodit/doc/module-Filebrowser.html)
|
|
2590
|
+
or [Uploader](http://xdsoft.net/jodit/doc/module-Uploader.html)
|
|
2455
2591
|
|
|
2456
2592
|
```javascript
|
|
2457
2593
|
var editor = new Jodit('#redactor');
|
|
@@ -2505,7 +2641,8 @@ Added copy-paste support by clipboard image. [Try](http://xdsoft.net/jodit) past
|
|
|
2505
2641
|
|
|
2506
2642
|
### 2.2.4
|
|
2507
2643
|
|
|
2508
|
-
Added the ability in the file browser to obtain data about the file not as a string and as an object with parameters
|
|
2644
|
+
Added the ability in the file browser to obtain data about the file not as a string and as an object with parameters
|
|
2645
|
+
{file: 'name.jpg', thumb: '\_thumbs/name.jpg'}
|
|
2509
2646
|
|
|
2510
2647
|
### 2.2.3
|
|
2511
2648
|
|
|
@@ -2517,8 +2654,15 @@ Fixed BACKSPACE entering behavior. And Fixed ie10 support
|
|
|
2517
2654
|
|
|
2518
2655
|
### 2.2.0
|
|
2519
2656
|
|
|
2520
|
-
Added [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframe)
|
|
2521
|
-
|
|
2657
|
+
Added [iframe](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframe)
|
|
2658
|
+
, [iframeStyle](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeStyle)
|
|
2659
|
+
, [iframeIncludeJoditStyle](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeIncludeJoditStyle)
|
|
2660
|
+
, [iframeCSSLinks](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.iframeCSSLinks)
|
|
2661
|
+
, [width](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.width)
|
|
2662
|
+
, [height](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.height)
|
|
2663
|
+
, [minHeight](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.minHeight).
|
|
2664
|
+
`iframe` by default false. When this option is enabled, the editor's content will be placed in an iframe and isolated
|
|
2665
|
+
from the rest of the page.
|
|
2522
2666
|
`width` and `height` you can set size fot editor
|
|
2523
2667
|
|
|
2524
2668
|
### 2.1.0
|
|
@@ -2527,7 +2671,8 @@ Added internationalization. Read more http://xdsoft.net/jodit/doc/Jodit.defaultO
|
|
|
2527
2671
|
|
|
2528
2672
|
### 2.0.9
|
|
2529
2673
|
|
|
2530
|
-
Added Split mode. Added [useSplitMode](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.useSplitMode) options (
|
|
2674
|
+
Added Split mode. Added [useSplitMode](http://xdsoft.net/jodit/doc/Jodit.defaultOptions.html#.useSplitMode) options (
|
|
2675
|
+
default true) Example [here](http://xdsoft.net/jodit/#splitmode)
|
|
2531
2676
|
|
|
2532
2677
|
### 2.0.8
|
|
2533
2678
|
|
|
@@ -2547,7 +2692,8 @@ Fixed bug in filebrowser
|
|
|
2547
2692
|
|
|
2548
2693
|
### 1.2.0
|
|
2549
2694
|
|
|
2550
|
-
Fixed bug when [selection.insertHTML](http://xdsoft.net/jodit/doc/module-Selection.html#-inner-insertHTML__anchor)
|
|
2695
|
+
Fixed bug when [selection.insertHTML](http://xdsoft.net/jodit/doc/module-Selection.html#-inner-insertHTML__anchor)
|
|
2696
|
+
doesn't work without focus
|
|
2551
2697
|
|
|
2552
2698
|
### 1.1.0
|
|
2553
2699
|
|