@ckeditor/ckeditor5-list 41.1.0 → 41.2.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/build/list.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +5 -1
- package/lang/translations/ar.po +16 -0
- package/lang/translations/ast.po +16 -0
- package/lang/translations/az.po +16 -0
- package/lang/translations/bg.po +16 -0
- package/lang/translations/bn.po +16 -0
- package/lang/translations/ca.po +16 -0
- package/lang/translations/cs.po +16 -0
- package/lang/translations/da.po +16 -0
- package/lang/translations/de-ch.po +16 -0
- package/lang/translations/de.po +16 -0
- package/lang/translations/el.po +16 -0
- package/lang/translations/en-au.po +16 -0
- package/lang/translations/en-gb.po +16 -0
- package/lang/translations/en.po +16 -0
- package/lang/translations/eo.po +16 -0
- package/lang/translations/es.po +16 -0
- package/lang/translations/et.po +16 -0
- package/lang/translations/eu.po +16 -0
- package/lang/translations/fa.po +16 -0
- package/lang/translations/fi.po +16 -0
- package/lang/translations/fr.po +16 -0
- package/lang/translations/gl.po +16 -0
- package/lang/translations/he.po +17 -1
- package/lang/translations/hi.po +16 -0
- package/lang/translations/hr.po +16 -0
- package/lang/translations/hu.po +16 -0
- package/lang/translations/id.po +16 -0
- package/lang/translations/it.po +16 -0
- package/lang/translations/ja.po +16 -0
- package/lang/translations/jv.po +16 -0
- package/lang/translations/km.po +16 -0
- package/lang/translations/kn.po +16 -0
- package/lang/translations/ko.po +16 -0
- package/lang/translations/ku.po +16 -0
- package/lang/translations/lt.po +16 -0
- package/lang/translations/lv.po +16 -0
- package/lang/translations/ms.po +16 -0
- package/lang/translations/nb.po +16 -0
- package/lang/translations/ne.po +16 -0
- package/lang/translations/nl.po +16 -0
- package/lang/translations/no.po +16 -0
- package/lang/translations/pl.po +16 -0
- package/lang/translations/pt-br.po +16 -0
- package/lang/translations/pt.po +27 -11
- package/lang/translations/ro.po +16 -0
- package/lang/translations/ru.po +16 -0
- package/lang/translations/si.po +16 -0
- package/lang/translations/sk.po +16 -0
- package/lang/translations/sq.po +16 -0
- package/lang/translations/sr-latn.po +16 -0
- package/lang/translations/sr.po +16 -0
- package/lang/translations/sv.po +16 -0
- package/lang/translations/th.po +16 -0
- package/lang/translations/tk.po +16 -0
- package/lang/translations/tr.po +16 -0
- package/lang/translations/tt.po +16 -0
- package/lang/translations/ug.po +16 -0
- package/lang/translations/uk.po +16 -0
- package/lang/translations/ur.po +16 -0
- package/lang/translations/uz.po +16 -0
- package/lang/translations/vi.po +16 -0
- package/lang/translations/zh-cn.po +16 -0
- package/lang/translations/zh.po +16 -0
- package/package.json +2 -2
- package/src/augmentation.d.ts +1 -1
- package/src/list/listediting.d.ts +4 -0
- package/src/list/listediting.js +22 -0
- package/src/listproperties/ui/listpropertiesview.js +3 -0
package/lang/translations/tt.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr ""
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr ""
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr ""
|
|
@@ -124,3 +128,15 @@ msgstr ""
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr ""
|
package/lang/translations/ug.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr ""
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr ""
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr ""
|
|
@@ -124,3 +128,15 @@ msgstr ""
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr "Початок при"
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr "Недійсне початкове значення індексу."
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr "Початковий індекс має бути більше 0."
|
|
@@ -124,3 +128,15 @@ msgstr "Початковий індекс має бути більше 0."
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr "Зворотний порядок"
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr "Натискання клавіш, які можна використовувати в списку"
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr "Збільшити відступ елемента списку"
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr "Зменшити відступ елемента списку"
|
package/lang/translations/ur.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr ""
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr ""
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr ""
|
|
@@ -124,3 +128,15 @@ msgstr ""
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr ""
|
package/lang/translations/uz.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr ""
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr ""
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr ""
|
|
@@ -124,3 +128,15 @@ msgstr ""
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr ""
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr ""
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr ""
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr "Bắt đầu tại"
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr "Giá trị chỉ mục bắt đầu không hợp lệ."
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr "Chỉ mục bắt đầu phải lớn hơn 0."
|
|
@@ -124,3 +128,15 @@ msgstr "Chỉ mục bắt đầu phải lớn hơn 0."
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr "Thứ tự đảo ngược"
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr "Tổ hợp phím mà bạn có thể dùng trong danh sách"
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr "Tăng thụt lề mục danh sách"
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr "Giảm thụt lề mục danh sách"
|
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr "起始编号"
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr "无效的起始索引值。"
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr "起始编号必须大于0。"
|
|
@@ -124,3 +128,15 @@ msgstr "起始编号必须大于0。"
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr "顺序反转"
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr "可在列表中使用的按键"
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr "增加列表项的缩进"
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr "减少列表项的缩进"
|
package/lang/translations/zh.po
CHANGED
|
@@ -117,6 +117,10 @@ msgctxt "The label of the input allowing to change the start index of a numbered
|
|
|
117
117
|
msgid "Start at"
|
|
118
118
|
msgstr "起始於"
|
|
119
119
|
|
|
120
|
+
msgctxt "The error message displayed when the numbered list start index input value is not a valid number."
|
|
121
|
+
msgid "Invalid start index value."
|
|
122
|
+
msgstr "無效的起始索引值。"
|
|
123
|
+
|
|
120
124
|
msgctxt "The error message displayed when the numbered list start index input value is invalid."
|
|
121
125
|
msgid "Start index must be greater than 0."
|
|
122
126
|
msgstr "起始索引須大於 0。"
|
|
@@ -124,3 +128,15 @@ msgstr "起始索引須大於 0。"
|
|
|
124
128
|
msgctxt "The label of the switch button that reverses the order of the numbered list."
|
|
125
129
|
msgid "Reversed order"
|
|
126
130
|
msgstr "反轉順序"
|
|
131
|
+
|
|
132
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a list."
|
|
133
|
+
msgid "Keystrokes that can be used in a list"
|
|
134
|
+
msgstr "可在列表中使用的按鍵"
|
|
135
|
+
|
|
136
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for increasing list item indentation."
|
|
137
|
+
msgid "Increase list item indent"
|
|
138
|
+
msgstr "增加列表項目縮排"
|
|
139
|
+
|
|
140
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for decreasing list item indentation."
|
|
141
|
+
msgid "Decrease list item indent"
|
|
142
|
+
msgstr "減少列表項目縮排"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-list",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.2.0",
|
|
4
4
|
"description": "Ordered and unordered lists feature to CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ckeditor5": "41.
|
|
16
|
+
"ckeditor5": "41.2.0"
|
|
17
17
|
},
|
|
18
18
|
"author": "CKSource (http://cksource.com/)",
|
|
19
19
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
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 { List, ListEditing, ListUtils, ListUI, ListCommand, ListIndentCommand, ListMergeCommand, ListSplitCommand, ListProperties, ListPropertiesUtils, ListPropertiesEditing, ListPropertiesUI, ListStyleCommand, ListStartCommand, ListReversedCommand, TodoList, TodoListEditing, TodoListUI, CheckTodoListCommand, LegacyList, LegacyListEditing, LegacyListUtils, LegacyListCommand, LegacyIndentCommand, LegacyListProperties, LegacyListPropertiesEditing, LegacyListStyleCommand, LegacyListStartCommand, LegacyListReversedCommand, LegacyTodoList, LegacyTodoListEditing, LegacyCheckTodoListCommand, ListConfig, DocumentList, DocumentListProperties, TodoDocumentList } from '.';
|
|
5
|
+
import type { List, ListEditing, ListUtils, ListUI, ListCommand, ListIndentCommand, ListMergeCommand, ListSplitCommand, ListProperties, ListPropertiesUtils, ListPropertiesEditing, ListPropertiesUI, ListStyleCommand, ListStartCommand, ListReversedCommand, TodoList, TodoListEditing, TodoListUI, CheckTodoListCommand, LegacyList, LegacyListEditing, LegacyListUtils, LegacyListCommand, LegacyIndentCommand, LegacyListProperties, LegacyListPropertiesEditing, LegacyListStyleCommand, LegacyListStartCommand, LegacyListReversedCommand, LegacyTodoList, LegacyTodoListEditing, LegacyCheckTodoListCommand, ListConfig, DocumentList, DocumentListProperties, TodoDocumentList } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface EditorConfig {
|
|
8
8
|
/**
|
|
@@ -91,6 +91,10 @@ export default class ListEditing extends Plugin {
|
|
|
91
91
|
* {@link module:engine/model/model~Model#getSelectedContent}.
|
|
92
92
|
*/
|
|
93
93
|
private _setupClipboardIntegration;
|
|
94
|
+
/**
|
|
95
|
+
* Informs editor accessibility features about keystrokes brought by the plugin.
|
|
96
|
+
*/
|
|
97
|
+
private _setupAccessibilityIntegration;
|
|
94
98
|
}
|
|
95
99
|
/**
|
|
96
100
|
* The attribute to attribute downcast strategy for UL, OL, LI elements.
|
package/src/list/listediting.js
CHANGED
|
@@ -101,6 +101,7 @@ export default class ListEditing extends Plugin {
|
|
|
101
101
|
this._setupEnterIntegration();
|
|
102
102
|
this._setupTabIntegration();
|
|
103
103
|
this._setupClipboardIntegration();
|
|
104
|
+
this._setupAccessibilityIntegration();
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
106
107
|
* @inheritDoc
|
|
@@ -450,6 +451,27 @@ export default class ListEditing extends Plugin {
|
|
|
450
451
|
});
|
|
451
452
|
});
|
|
452
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* Informs editor accessibility features about keystrokes brought by the plugin.
|
|
456
|
+
*/
|
|
457
|
+
_setupAccessibilityIntegration() {
|
|
458
|
+
const editor = this.editor;
|
|
459
|
+
const t = editor.t;
|
|
460
|
+
editor.accessibility.addKeystrokeInfoGroup({
|
|
461
|
+
id: 'list',
|
|
462
|
+
label: t('Keystrokes that can be used in a list'),
|
|
463
|
+
keystrokes: [
|
|
464
|
+
{
|
|
465
|
+
label: t('Increase list item indent'),
|
|
466
|
+
keystroke: 'Tab'
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
label: t('Decrease list item indent'),
|
|
470
|
+
keystroke: 'Shift+Tab'
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
});
|
|
474
|
+
}
|
|
453
475
|
}
|
|
454
476
|
/**
|
|
455
477
|
* Post-fixer that reacts to changes on document and fixes incorrect model states (invalid `listItemId` and `listIndent` values).
|
|
@@ -270,6 +270,9 @@ export default class ListPropertiesView extends View {
|
|
|
270
270
|
const inputElement = startIndexFieldView.fieldView.element;
|
|
271
271
|
const startIndex = inputElement.valueAsNumber;
|
|
272
272
|
if (Number.isNaN(startIndex)) {
|
|
273
|
+
// Number inputs allow for the entry of characters that may result in NaN,
|
|
274
|
+
// such as 'e', '+', '123e', '2-'.
|
|
275
|
+
startIndexFieldView.errorText = t('Invalid start index value.');
|
|
273
276
|
return;
|
|
274
277
|
}
|
|
275
278
|
if (!inputElement.checkValidity()) {
|