@ckeditor/ckeditor5-undo 32.0.0 → 34.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +2 -2
- package/README.md +2 -1
- package/lang/translations/ur.po +25 -0
- package/package.json +13 -13
- package/src/basecommand.js +1 -1
- package/src/undoediting.js +3 -3
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-2022, [CKSource
|
5
|
+
Copyright (c) 2003-2022, [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
|
|
@@ -14,4 +14,4 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
|
|
14
14
|
Trademarks
|
15
15
|
----------
|
16
16
|
|
17
|
-
**CKEditor** is a trademark of [CKSource
|
17
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
package/README.md
CHANGED
@@ -3,7 +3,8 @@ CKEditor 5 undo feature
|
|
3
3
|
|
4
4
|
[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-undo.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-undo)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
6
|
-
[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://travis-ci.com/ckeditor/ckeditor5)
|
6
|
+
[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
7
|
+
![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-undo)
|
7
8
|
|
8
9
|
This package implements undo support for CKEditor 5.
|
9
10
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
|
16
|
+
"Language: ur\n"
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
|
+
|
19
|
+
msgctxt "Toolbar button tooltip for the Undo feature."
|
20
|
+
msgid "Undo"
|
21
|
+
msgstr "رد ترمیم"
|
22
|
+
|
23
|
+
msgctxt "Toolbar button tooltip for the Redo feature."
|
24
|
+
msgid "Redo"
|
25
|
+
msgstr "پھر سے کریں"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-undo",
|
3
|
-
"version": "
|
3
|
+
"version": "34.1.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": "^34.1.0",
|
16
|
+
"@ckeditor/ckeditor5-engine": "^34.1.0",
|
17
|
+
"@ckeditor/ckeditor5-ui": "^34.1.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": "^34.1.0",
|
21
|
+
"@ckeditor/ckeditor5-clipboard": "^34.1.0",
|
22
|
+
"@ckeditor/ckeditor5-editor-classic": "^34.1.0",
|
23
|
+
"@ckeditor/ckeditor5-enter": "^34.1.0",
|
24
|
+
"@ckeditor/ckeditor5-heading": "^34.1.0",
|
25
|
+
"@ckeditor/ckeditor5-paragraph": "^34.1.0",
|
26
|
+
"@ckeditor/ckeditor5-typing": "^34.1.0",
|
27
|
+
"@ckeditor/ckeditor5-table": "^34.1.0",
|
28
|
+
"@ckeditor/ckeditor5-utils": "^34.1.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
|
}
|