@ckeditor/ckeditor5-select-all 41.1.0 → 41.2.1
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/lang/translations/he.po +1 -1
- package/package.json +4 -4
- package/src/selectallediting.js +10 -0
package/lang/translations/he.po
CHANGED
|
@@ -14,7 +14,7 @@ msgid ""
|
|
|
14
14
|
msgstr ""
|
|
15
15
|
"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n"
|
|
16
16
|
"Language: he\n"
|
|
17
|
-
"Plural-Forms: nplurals=
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: 2;\n"
|
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
19
|
|
|
20
20
|
msgctxt "The label of the select all toolbar button."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-select-all",
|
|
3
|
-
"version": "41.1
|
|
3
|
+
"version": "41.2.1",
|
|
4
4
|
"description": "Select all feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "41.1
|
|
17
|
-
"@ckeditor/ckeditor5-utils": "41.1
|
|
18
|
-
"@ckeditor/ckeditor5-ui": "41.1
|
|
16
|
+
"@ckeditor/ckeditor5-core": "41.2.1",
|
|
17
|
+
"@ckeditor/ckeditor5-utils": "41.2.1",
|
|
18
|
+
"@ckeditor/ckeditor5-ui": "41.2.1"
|
|
19
19
|
},
|
|
20
20
|
"author": "CKSource (http://cksource.com/)",
|
|
21
21
|
"license": "GPL-2.0-or-later",
|
package/src/selectallediting.js
CHANGED
|
@@ -27,6 +27,7 @@ export default class SelectAllEditing extends Plugin {
|
|
|
27
27
|
*/
|
|
28
28
|
init() {
|
|
29
29
|
const editor = this.editor;
|
|
30
|
+
const t = editor.t;
|
|
30
31
|
const view = editor.editing.view;
|
|
31
32
|
const viewDocument = view.document;
|
|
32
33
|
editor.commands.add('selectAll', new SelectAllCommand(editor));
|
|
@@ -36,5 +37,14 @@ export default class SelectAllEditing extends Plugin {
|
|
|
36
37
|
domEventData.preventDefault();
|
|
37
38
|
}
|
|
38
39
|
});
|
|
40
|
+
// Add the information about the keystroke to the accessibility database.
|
|
41
|
+
editor.accessibility.addKeystrokeInfos({
|
|
42
|
+
keystrokes: [
|
|
43
|
+
{
|
|
44
|
+
label: t('Select all'),
|
|
45
|
+
keystroke: 'CTRL+A'
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
});
|
|
39
49
|
}
|
|
40
50
|
}
|