@ckeditor/ckeditor5-undo 40.1.0 → 41.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -25
- package/LICENSE.md +1 -1
- package/ckeditor5-metadata.json +23 -0
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +5 -4
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/basecommand.d.ts +1 -1
- package/src/basecommand.js +1 -1
- package/src/index.d.ts +7 -7
- package/src/index.js +5 -5
- package/src/redocommand.d.ts +2 -2
- package/src/redocommand.js +2 -2
- package/src/undo.d.ts +3 -3
- package/src/undo.js +3 -3
- package/src/undocommand.d.ts +2 -2
- package/src/undocommand.js +2 -2
- package/src/undoediting.d.ts +1 -1
- package/src/undoediting.js +3 -3
- package/src/undoui.d.ts +1 -1
- package/src/undoui.js +4 -6
- package/theme/icons/redo.svg +0 -1
- package/theme/icons/undo.svg +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,17 +5,17 @@ All changes in the package are documented in the main repository. See: https://g
|
|
|
5
5
|
|
|
6
6
|
Changes for the past releases are available below.
|
|
7
7
|
|
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v18.0.0...v19.0.0) (2020
|
|
8
|
+
## [19.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v18.0.0...v19.0.0) (April 29, 2020)
|
|
9
9
|
|
|
10
10
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v17.0.0...v18.0.0) (2020
|
|
13
|
+
## [18.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v17.0.0...v18.0.0) (March 19, 2020)
|
|
14
14
|
|
|
15
15
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v16.0.0...v17.0.0) (2020
|
|
18
|
+
## [17.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v16.0.0...v17.0.0) (February 19, 2020)
|
|
19
19
|
|
|
20
20
|
### Bug fixes
|
|
21
21
|
|
|
@@ -26,12 +26,12 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
26
26
|
* Updated translations. ([847543d](https://github.com/ckeditor/ckeditor5-undo/commit/847543d))
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v15.0.0...v16.0.0) (2019
|
|
29
|
+
## [16.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v15.0.0...v16.0.0) (December 4, 2019)
|
|
30
30
|
|
|
31
31
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.5...v15.0.0) (2019
|
|
34
|
+
## [15.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.5...v15.0.0) (October 23, 2019)
|
|
35
35
|
|
|
36
36
|
### Other changes
|
|
37
37
|
|
|
@@ -39,7 +39,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
39
39
|
* Updated translations. ([c37a6c4](https://github.com/ckeditor/ckeditor5-undo/commit/c37a6c4)) ([1005475](https://github.com/ckeditor/ckeditor5-undo/commit/1005475))
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
## [11.0.5](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.4...v11.0.5) (2019
|
|
42
|
+
## [11.0.5](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.4...v11.0.5) (August 26, 2019)
|
|
43
43
|
|
|
44
44
|
### Other changes
|
|
45
45
|
|
|
@@ -48,33 +48,33 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
48
48
|
* Updated translations. ([6f5803f](https://github.com/ckeditor/ckeditor5-undo/commit/6f5803f))
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
## [11.0.4](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.3...v11.0.4) (2019
|
|
51
|
+
## [11.0.4](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.3...v11.0.4) (July 10, 2019)
|
|
52
52
|
|
|
53
53
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
## [11.0.3](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.2...v11.0.3) (2019
|
|
56
|
+
## [11.0.3](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.2...v11.0.3) (July 4, 2019)
|
|
57
57
|
|
|
58
58
|
### Other changes
|
|
59
59
|
|
|
60
60
|
* Use transparent batches in undo & redo commands. Closes [#97](https://github.com/ckeditor/ckeditor5-undo/issues/97). ([ef8b640](https://github.com/ckeditor/ckeditor5-undo/commit/ef8b640))
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
## [11.0.2](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.1...v11.0.2) (2019
|
|
63
|
+
## [11.0.2](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.1...v11.0.2) (June 6, 2019)
|
|
64
64
|
|
|
65
65
|
### Other changes
|
|
66
66
|
|
|
67
67
|
* Updated translations. ([af36370](https://github.com/ckeditor/ckeditor5-undo/commit/af36370))
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
## [11.0.1](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.0...v11.0.1) (2019
|
|
70
|
+
## [11.0.1](https://github.com/ckeditor/ckeditor5-undo/compare/v11.0.0...v11.0.1) (April 4, 2019)
|
|
71
71
|
|
|
72
72
|
### Other changes
|
|
73
73
|
|
|
74
74
|
* Updated translations. ([69faf7c](https://github.com/ckeditor/ckeditor5-undo/commit/69faf7c))
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.4...v11.0.0) (2019
|
|
77
|
+
## [11.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.4...v11.0.0) (February 28, 2019)
|
|
78
78
|
|
|
79
79
|
### Other changes
|
|
80
80
|
|
|
@@ -85,7 +85,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
85
85
|
* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c))
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
## [10.0.4](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.3...v10.0.4) (2018
|
|
88
|
+
## [10.0.4](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.3...v10.0.4) (December 5, 2018)
|
|
89
89
|
|
|
90
90
|
### Other changes
|
|
91
91
|
|
|
@@ -93,28 +93,28 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
93
93
|
* Updated translations. ([b2fe351](https://github.com/ckeditor/ckeditor5-undo/commit/b2fe351))
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
## [10.0.3](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.2...v10.0.3) (2018
|
|
96
|
+
## [10.0.3](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.2...v10.0.3) (October 8, 2018)
|
|
97
97
|
|
|
98
98
|
### Other changes
|
|
99
99
|
|
|
100
100
|
* Updated translations. ([7aec2df](https://github.com/ckeditor/ckeditor5-undo/commit/7aec2df))
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
## [10.0.2](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.1...v10.0.2) (2018
|
|
103
|
+
## [10.0.2](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.1...v10.0.2) (July 18, 2018)
|
|
104
104
|
|
|
105
105
|
### Other changes
|
|
106
106
|
|
|
107
107
|
* Updated translations. ([433de24](https://github.com/ckeditor/ckeditor5-undo/commit/433de24))
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
## [10.0.1](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.0...v10.0.1) (2018
|
|
110
|
+
## [10.0.1](https://github.com/ckeditor/ckeditor5-undo/compare/v10.0.0...v10.0.1) (June 21, 2018)
|
|
111
111
|
|
|
112
112
|
### Other changes
|
|
113
113
|
|
|
114
114
|
* Updated translations. ([d5942d5](https://github.com/ckeditor/ckeditor5-undo/commit/d5942d5))
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.4...v10.0.0) (2018
|
|
117
|
+
## [10.0.0](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.4...v10.0.0) (April 25, 2018)
|
|
118
118
|
|
|
119
119
|
### Other changes
|
|
120
120
|
|
|
@@ -125,19 +125,19 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
125
125
|
* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018
|
|
128
|
+
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.2...v1.0.0-beta.4) (April 19, 2018)
|
|
129
129
|
|
|
130
130
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018
|
|
133
|
+
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-beta.1...v1.0.0-beta.2) (April 10, 2018)
|
|
134
134
|
|
|
135
135
|
### Bug fixes
|
|
136
136
|
|
|
137
137
|
* `UndoCommand` and `RedoCommand` should pass batch in `model.Model#enqueueChange` call. Closes [#84](https://github.com/ckeditor/ckeditor5-undo/issues/84). ([497af30](https://github.com/ckeditor/ckeditor5-undo/commit/497af30))
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018
|
|
140
|
+
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (March 15, 2018)
|
|
141
141
|
|
|
142
142
|
### Features
|
|
143
143
|
|
|
@@ -153,21 +153,21 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
153
153
|
* Updated translations. ([33171d5](https://github.com/ckeditor/ckeditor5-undo/commit/33171d5))
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017
|
|
156
|
+
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-undo/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (November 14, 2017)
|
|
157
157
|
|
|
158
158
|
### Other changes
|
|
159
159
|
|
|
160
160
|
* Updated translations. ([847838f](https://github.com/ckeditor/ckeditor5-undo/commit/847838f))
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.9.0...v1.0.0-alpha.1) (2017
|
|
163
|
+
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.9.0...v1.0.0-alpha.1) (October 3, 2017)
|
|
164
164
|
|
|
165
165
|
### Bug fixes
|
|
166
166
|
|
|
167
167
|
* Selection should be correctly restored when undoing after all editor content was replaced or removed. Closes [#72](https://github.com/ckeditor/ckeditor5-undo/issues/72). ([58f953f](https://github.com/ckeditor/ckeditor5-undo/commit/58f953f))
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
## [0.9.0](https://github.com/ckeditor/ckeditor5-undo/compare/v0.8.1...v0.9.0) (2017
|
|
170
|
+
## [0.9.0](https://github.com/ckeditor/ckeditor5-undo/compare/v0.8.1...v0.9.0) (September 3, 2017)
|
|
171
171
|
|
|
172
172
|
### Other changes
|
|
173
173
|
|
|
@@ -179,14 +179,14 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
179
179
|
* The command API has been changed.
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
## [0.8.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.8.0...v0.8.1) (2017
|
|
182
|
+
## [0.8.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.8.0...v0.8.1) (May 7, 2017)
|
|
183
183
|
|
|
184
184
|
### Other changes
|
|
185
185
|
|
|
186
186
|
* Updated translations. ([d3847a6](https://github.com/ckeditor/ckeditor5-undo/commit/d3847a6))
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
## [0.8.0](https://github.com/ckeditor/ckeditor5-undo/compare/v0.7.1...v0.8.0) (2017
|
|
189
|
+
## [0.8.0](https://github.com/ckeditor/ckeditor5-undo/compare/v0.7.1...v0.8.0) (April 5, 2017)
|
|
190
190
|
|
|
191
191
|
### Features
|
|
192
192
|
|
|
@@ -197,7 +197,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
197
197
|
* Updated translations. ([730bf75](https://github.com/ckeditor/ckeditor5-undo/commit/730bf75))
|
|
198
198
|
|
|
199
199
|
|
|
200
|
-
## [0.7.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.7.0...v0.7.1) (2017
|
|
200
|
+
## [0.7.1](https://github.com/ckeditor/ckeditor5-undo/compare/v0.7.0...v0.7.1) (March 6, 2017)
|
|
201
201
|
|
|
202
202
|
### Other changes
|
|
203
203
|
|
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 undo feature** – https://github.com/ckeditor/ckeditor5-undo <br>
|
|
5
|
-
Copyright (c) 2003–
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
6
|
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
|
8
8
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Undo",
|
|
5
|
+
"className": "Undo",
|
|
6
|
+
"description": "Support the undo and redo functionalities.",
|
|
7
|
+
"docs": "features/undo-redo.html",
|
|
8
|
+
"path": "src/undo.js",
|
|
9
|
+
"uiComponents": [
|
|
10
|
+
{
|
|
11
|
+
"type": "Button",
|
|
12
|
+
"name": "undo",
|
|
13
|
+
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/undo.svg"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "Button",
|
|
17
|
+
"name": "redo",
|
|
18
|
+
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/redo.svg"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
package/lang/translations/ar.po
CHANGED
package/lang/translations/ast.po
CHANGED
package/lang/translations/az.po
CHANGED
package/lang/translations/bg.po
CHANGED
package/lang/translations/bn.po
CHANGED
package/lang/translations/ca.po
CHANGED
package/lang/translations/cs.po
CHANGED
package/lang/translations/da.po
CHANGED
package/lang/translations/de.po
CHANGED
package/lang/translations/el.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/eo.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/eu.po
CHANGED
package/lang/translations/fa.po
CHANGED
package/lang/translations/fi.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/he.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/km.po
CHANGED
package/lang/translations/kn.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/ku.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nb.po
CHANGED
package/lang/translations/ne.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/si.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-undo",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.0",
|
|
4
4
|
"description": "Undo feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
"ckeditor5-plugin",
|
|
11
11
|
"ckeditor5-dll"
|
|
12
12
|
],
|
|
13
|
+
"type": "module",
|
|
13
14
|
"main": "src/index.js",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-core": "
|
|
16
|
-
"@ckeditor/ckeditor5-engine": "
|
|
17
|
-
"@ckeditor/ckeditor5-ui": "
|
|
16
|
+
"@ckeditor/ckeditor5-core": "41.0.0",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "41.0.0",
|
|
18
|
+
"@ckeditor/ckeditor5-ui": "41.0.0"
|
|
18
19
|
},
|
|
19
20
|
"author": "CKSource (http://cksource.com/)",
|
|
20
21
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { Undo, UndoEditing, UndoUI, UndoCommand, RedoCommand } from './index';
|
|
5
|
+
import type { Undo, UndoEditing, UndoUI, UndoCommand, RedoCommand } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface CommandsMap {
|
|
8
8
|
undo: UndoCommand;
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/basecommand.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/basecommand.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo
|
|
7
7
|
*/
|
|
8
|
-
export { default as Undo } from './undo';
|
|
9
|
-
export { default as UndoEditing } from './undoediting';
|
|
10
|
-
export { default as UndoUI } from './undoui';
|
|
11
|
-
export type { default as UndoCommand } from './undocommand';
|
|
12
|
-
export type { default as RedoCommand } from './redocommand';
|
|
13
|
-
import './augmentation';
|
|
8
|
+
export { default as Undo } from './undo.js';
|
|
9
|
+
export { default as UndoEditing } from './undoediting.js';
|
|
10
|
+
export { default as UndoUI } from './undoui.js';
|
|
11
|
+
export type { default as UndoCommand } from './undocommand.js';
|
|
12
|
+
export type { default as RedoCommand } from './redocommand.js';
|
|
13
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo
|
|
7
7
|
*/
|
|
8
|
-
export { default as Undo } from './undo';
|
|
9
|
-
export { default as UndoEditing } from './undoediting';
|
|
10
|
-
export { default as UndoUI } from './undoui';
|
|
11
|
-
import './augmentation';
|
|
8
|
+
export { default as Undo } from './undo.js';
|
|
9
|
+
export { default as UndoEditing } from './undoediting.js';
|
|
10
|
+
export { default as UndoUI } from './undoui.js';
|
|
11
|
+
import './augmentation.js';
|
package/src/redocommand.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/redocommand
|
|
7
7
|
*/
|
|
8
|
-
import BaseCommand from './basecommand';
|
|
8
|
+
import BaseCommand from './basecommand.js';
|
|
9
9
|
/**
|
|
10
10
|
* The redo command stores {@link module:engine/model/batch~Batch batches} that were used to undo a batch by
|
|
11
11
|
* {@link module:undo/undocommand~UndoCommand}. It is able to redo a previously undone batch by reversing the undoing
|
package/src/redocommand.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/redocommand
|
|
7
7
|
*/
|
|
8
|
-
import BaseCommand from './basecommand';
|
|
8
|
+
import BaseCommand from './basecommand.js';
|
|
9
9
|
/**
|
|
10
10
|
* The redo command stores {@link module:engine/model/batch~Batch batches} that were used to undo a batch by
|
|
11
11
|
* {@link module:undo/undocommand~UndoCommand}. It is able to redo a previously undone batch by reversing the undoing
|
package/src/undo.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/undo
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import UndoEditing from './undoediting';
|
|
10
|
-
import UndoUI from './undoui';
|
|
9
|
+
import UndoEditing from './undoediting.js';
|
|
10
|
+
import UndoUI from './undoui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The undo feature.
|
|
13
13
|
*
|
package/src/undo.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/undo
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import UndoEditing from './undoediting';
|
|
10
|
-
import UndoUI from './undoui';
|
|
9
|
+
import UndoEditing from './undoediting.js';
|
|
10
|
+
import UndoUI from './undoui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The undo feature.
|
|
13
13
|
*
|
package/src/undocommand.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/undocommand
|
|
7
7
|
*/
|
|
8
|
-
import BaseCommand from './basecommand';
|
|
8
|
+
import BaseCommand from './basecommand.js';
|
|
9
9
|
import type { Batch } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
/**
|
|
11
11
|
* The undo command stores {@link module:engine/model/batch~Batch batches} applied to the
|
package/src/undocommand.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/undocommand
|
|
7
7
|
*/
|
|
8
|
-
import BaseCommand from './basecommand';
|
|
8
|
+
import BaseCommand from './basecommand.js';
|
|
9
9
|
/**
|
|
10
10
|
* The undo command stores {@link module:engine/model/batch~Batch batches} applied to the
|
|
11
11
|
* {@link module:engine/model/document~Document document} and is able to undo a batch by reversing it and transforming by
|
package/src/undoediting.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/undoediting.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/undoediting
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import UndoCommand from './undocommand';
|
|
10
|
-
import RedoCommand from './redocommand';
|
|
9
|
+
import UndoCommand from './undocommand.js';
|
|
10
|
+
import RedoCommand from './redocommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The undo engine feature.
|
|
13
13
|
*
|
package/src/undoui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/undoui.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module undo/undoui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
8
|
+
import { icons, Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ButtonView } from '@ckeditor/ckeditor5-ui';
|
|
10
|
-
import undoIcon from '../theme/icons/undo.svg';
|
|
11
|
-
import redoIcon from '../theme/icons/redo.svg';
|
|
12
10
|
/**
|
|
13
11
|
* The undo UI feature. It introduces the `'undo'` and `'redo'` buttons to the editor.
|
|
14
12
|
*/
|
|
@@ -26,8 +24,8 @@ export default class UndoUI extends Plugin {
|
|
|
26
24
|
const editor = this.editor;
|
|
27
25
|
const locale = editor.locale;
|
|
28
26
|
const t = editor.t;
|
|
29
|
-
const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ?
|
|
30
|
-
const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ?
|
|
27
|
+
const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ? icons.undo : icons.redo;
|
|
28
|
+
const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ? icons.redo : icons.undo;
|
|
31
29
|
this._addButton('undo', t('Undo'), 'CTRL+Z', localizedUndoIcon);
|
|
32
30
|
this._addButton('redo', t('Redo'), 'CTRL+Y', localizedRedoIcon);
|
|
33
31
|
}
|
package/theme/icons/redo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>
|
package/theme/icons/undo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>
|