@ckeditor/ckeditor5-undo 32.0.0 → 33.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +13 -13
- package/src/basecommand.js +1 -1
- package/src/undoediting.js +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-undo",
|
3
|
-
"version": "
|
3
|
+
"version": "33.0.0",
|
4
4
|
"description": "Undo feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,20 +12,20 @@
|
|
12
12
|
],
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "^
|
16
|
-
"@ckeditor/ckeditor5-engine": "^
|
17
|
-
"@ckeditor/ckeditor5-ui": "^
|
15
|
+
"@ckeditor/ckeditor5-core": "^33.0.0",
|
16
|
+
"@ckeditor/ckeditor5-engine": "^33.0.0",
|
17
|
+
"@ckeditor/ckeditor5-ui": "^33.0.0"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
21
|
-
"@ckeditor/ckeditor5-clipboard": "^
|
22
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
23
|
-
"@ckeditor/ckeditor5-enter": "^
|
24
|
-
"@ckeditor/ckeditor5-heading": "^
|
25
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
26
|
-
"@ckeditor/ckeditor5-typing": "^
|
27
|
-
"@ckeditor/ckeditor5-table": "^
|
28
|
-
"@ckeditor/ckeditor5-utils": "^
|
20
|
+
"@ckeditor/ckeditor5-basic-styles": "^33.0.0",
|
21
|
+
"@ckeditor/ckeditor5-clipboard": "^33.0.0",
|
22
|
+
"@ckeditor/ckeditor5-editor-classic": "^33.0.0",
|
23
|
+
"@ckeditor/ckeditor5-enter": "^33.0.0",
|
24
|
+
"@ckeditor/ckeditor5-heading": "^33.0.0",
|
25
|
+
"@ckeditor/ckeditor5-paragraph": "^33.0.0",
|
26
|
+
"@ckeditor/ckeditor5-typing": "^33.0.0",
|
27
|
+
"@ckeditor/ckeditor5-table": "^33.0.0",
|
28
|
+
"@ckeditor/ckeditor5-utils": "^33.0.0"
|
29
29
|
},
|
30
30
|
"engines": {
|
31
31
|
"node": ">=14.0.0",
|
package/src/basecommand.js
CHANGED
@@ -59,7 +59,7 @@ export default class BaseCommand extends Command {
|
|
59
59
|
|
60
60
|
// Clear the stack for the `transparent` batches.
|
61
61
|
this.listenTo( editor.data, 'set', ( evt, data ) => {
|
62
|
-
// We can assume that the object exists and it has `batchType` property.
|
62
|
+
// We can assume that the object exists and it has a `batchType` property.
|
63
63
|
// It was ensured with a higher priority listener before.
|
64
64
|
const options = data[ 1 ];
|
65
65
|
|
package/src/undoediting.js
CHANGED
@@ -102,11 +102,11 @@ export default class UndoEditing extends Plugin {
|
|
102
102
|
}
|
103
103
|
|
104
104
|
if ( isRedoBatch ) {
|
105
|
-
// If this batch comes from `redoCommand`, add it to `undoCommand` stack.
|
105
|
+
// If this batch comes from `redoCommand`, add it to the `undoCommand` stack.
|
106
106
|
this._undoCommand.addBatch( batch );
|
107
107
|
} else if ( !isUndoBatch ) {
|
108
|
-
// If the batch
|
109
|
-
// Add the batch to the `undoCommand` stack and clear `redoCommand` stack.
|
108
|
+
// If the batch comes neither from `redoCommand` nor from `undoCommand` then it is a new, regular batch.
|
109
|
+
// Add the batch to the `undoCommand` stack and clear the `redoCommand` stack.
|
110
110
|
this._undoCommand.addBatch( batch );
|
111
111
|
this._redoCommand.clearStack();
|
112
112
|
}
|