@ckeditor/ckeditor5-table 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/table.js +2 -2
- package/build/translations/ar.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/es.js +1 -1
- package/build/translations/et.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/hy.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/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/sk.js +1 -1
- package/build/translations/sl.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 +6 -3
- package/lang/translations/ar.po +20 -8
- package/lang/translations/az.po +18 -6
- package/lang/translations/bg.po +20 -8
- package/lang/translations/bn.po +20 -8
- package/lang/translations/ca.po +20 -8
- package/lang/translations/cs.po +20 -8
- package/lang/translations/da.po +20 -8
- package/lang/translations/de-ch.po +18 -6
- package/lang/translations/de.po +20 -8
- package/lang/translations/el.po +20 -8
- package/lang/translations/en-au.po +20 -8
- package/lang/translations/en-gb.po +18 -6
- package/lang/translations/en.po +20 -8
- package/lang/translations/es.po +20 -8
- package/lang/translations/et.po +20 -8
- package/lang/translations/fa.po +18 -6
- package/lang/translations/fi.po +20 -8
- package/lang/translations/fr.po +20 -8
- package/lang/translations/gl.po +20 -8
- package/lang/translations/he.po +21 -9
- package/lang/translations/hi.po +20 -8
- package/lang/translations/hr.po +20 -8
- package/lang/translations/hu.po +20 -8
- package/lang/translations/hy.po +18 -6
- package/lang/translations/id.po +20 -8
- package/lang/translations/it.po +20 -8
- package/lang/translations/ja.po +20 -8
- package/lang/translations/ko.po +20 -8
- package/lang/translations/ku.po +18 -6
- package/lang/translations/lt.po +20 -8
- package/lang/translations/lv.po +20 -8
- package/lang/translations/ms.po +20 -8
- package/lang/translations/nb.po +18 -6
- package/lang/translations/ne.po +18 -6
- package/lang/translations/nl.po +20 -8
- package/lang/translations/no.po +20 -8
- package/lang/translations/pl.po +20 -8
- package/lang/translations/pt-br.po +20 -8
- package/lang/translations/pt.po +29 -17
- package/lang/translations/ro.po +20 -8
- package/lang/translations/ru.po +20 -8
- package/lang/translations/sk.po +20 -8
- package/lang/translations/sl.po +18 -6
- package/lang/translations/sq.po +18 -6
- package/lang/translations/sr-latn.po +20 -8
- package/lang/translations/sr.po +20 -8
- package/lang/translations/sv.po +20 -8
- package/lang/translations/th.po +20 -8
- package/lang/translations/tk.po +18 -6
- package/lang/translations/tr.po +20 -8
- package/lang/translations/tt.po +18 -6
- package/lang/translations/ug.po +18 -6
- package/lang/translations/uk.po +20 -8
- package/lang/translations/ur.po +18 -6
- package/lang/translations/uz.po +18 -6
- package/lang/translations/vi.po +20 -8
- package/lang/translations/zh-cn.po +20 -8
- package/lang/translations/zh.po +20 -8
- package/package.json +2 -2
- package/src/tableclipboard.d.ts +6 -1
- package/src/tableclipboard.js +60 -45
- package/src/tablekeyboard.js +26 -1
- package/src/tableutils.js +4 -1
package/lang/translations/tk.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "Reňk saýlaýjy"
|
|
251
251
|
|
|
252
|
-
msgctxt "The
|
|
253
|
-
msgid "
|
|
252
|
+
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
253
|
+
msgid "Enter table caption"
|
|
254
254
|
msgstr ""
|
|
255
255
|
|
|
256
|
-
msgctxt "
|
|
257
|
-
msgid "
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
258
|
msgstr ""
|
|
259
259
|
|
|
260
|
-
msgctxt "
|
|
261
|
-
msgid "
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr ""
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr ""
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr ""
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
262
274
|
msgstr ""
|
package/lang/translations/tr.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "Renk seçici"
|
|
251
251
|
|
|
252
|
-
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
253
|
-
msgid "Toggle caption off"
|
|
254
|
-
msgstr "Açıklamayı kapat"
|
|
255
|
-
|
|
256
|
-
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
257
|
-
msgid "Toggle caption on"
|
|
258
|
-
msgstr "Açıklamayı aç"
|
|
259
|
-
|
|
260
252
|
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
261
253
|
msgid "Enter table caption"
|
|
262
254
|
msgstr "Tablo açıklaması gir"
|
|
255
|
+
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
|
+
msgstr "Tablo hücresinde kullanılabilecek tuş vuruşları"
|
|
259
|
+
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr "Seçimi sonraki hücreye taşı"
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr "Seçimi önceki hücreye taşı"
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr "Yeni bir tablo satırı ekle (tablonun son hücresindeyken)"
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
274
|
+
msgstr "Tabloda gezin"
|
package/lang/translations/tt.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr ""
|
|
251
251
|
|
|
252
|
-
msgctxt "The
|
|
253
|
-
msgid "
|
|
252
|
+
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
253
|
+
msgid "Enter table caption"
|
|
254
254
|
msgstr ""
|
|
255
255
|
|
|
256
|
-
msgctxt "
|
|
257
|
-
msgid "
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
258
|
msgstr ""
|
|
259
259
|
|
|
260
|
-
msgctxt "
|
|
261
|
-
msgid "
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr ""
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr ""
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr ""
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
262
274
|
msgstr ""
|
package/lang/translations/ug.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr ""
|
|
251
251
|
|
|
252
|
-
msgctxt "The
|
|
253
|
-
msgid "
|
|
252
|
+
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
253
|
+
msgid "Enter table caption"
|
|
254
254
|
msgstr ""
|
|
255
255
|
|
|
256
|
-
msgctxt "
|
|
257
|
-
msgid "
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
258
|
msgstr ""
|
|
259
259
|
|
|
260
|
-
msgctxt "
|
|
261
|
-
msgid "
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr ""
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr ""
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr ""
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
262
274
|
msgstr ""
|
package/lang/translations/uk.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "Вибір кольору"
|
|
251
251
|
|
|
252
|
-
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
253
|
-
msgid "Toggle caption off"
|
|
254
|
-
msgstr "Вимкнути підпис"
|
|
255
|
-
|
|
256
|
-
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
257
|
-
msgid "Toggle caption on"
|
|
258
|
-
msgstr "Увімкнути підпис"
|
|
259
|
-
|
|
260
252
|
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
261
253
|
msgid "Enter table caption"
|
|
262
254
|
msgstr "Введіть підпис таблиці"
|
|
255
|
+
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
|
+
msgstr "Натискання клавіш, які можна використовувати в комірці таблиці"
|
|
259
|
+
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr "Move the selection to the next cell"
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr "Перемістити виділення в попередню клітинку"
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr "Вставити новий рядок таблиці (якщо в останній клітинці таблиці)"
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
274
|
+
msgstr "Навігація по таблиці"
|
package/lang/translations/ur.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr ""
|
|
251
251
|
|
|
252
|
-
msgctxt "The
|
|
253
|
-
msgid "
|
|
252
|
+
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
253
|
+
msgid "Enter table caption"
|
|
254
254
|
msgstr ""
|
|
255
255
|
|
|
256
|
-
msgctxt "
|
|
257
|
-
msgid "
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
258
|
msgstr ""
|
|
259
259
|
|
|
260
|
-
msgctxt "
|
|
261
|
-
msgid "
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr ""
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr ""
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr ""
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
262
274
|
msgstr ""
|
package/lang/translations/uz.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "Rang tanlash"
|
|
251
251
|
|
|
252
|
-
msgctxt "The
|
|
253
|
-
msgid "
|
|
252
|
+
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
253
|
+
msgid "Enter table caption"
|
|
254
254
|
msgstr ""
|
|
255
255
|
|
|
256
|
-
msgctxt "
|
|
257
|
-
msgid "
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
258
|
msgstr ""
|
|
259
259
|
|
|
260
|
-
msgctxt "
|
|
261
|
-
msgid "
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr ""
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr ""
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr ""
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
262
274
|
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "Bộ chọn màu"
|
|
251
251
|
|
|
252
|
-
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
253
|
-
msgid "Toggle caption off"
|
|
254
|
-
msgstr "Ẩn chú thích"
|
|
255
|
-
|
|
256
|
-
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
257
|
-
msgid "Toggle caption on"
|
|
258
|
-
msgstr "Hiện chú thích"
|
|
259
|
-
|
|
260
252
|
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
261
253
|
msgid "Enter table caption"
|
|
262
254
|
msgstr "Nhập chú thích cho bảng"
|
|
255
|
+
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
|
+
msgstr "Tổ hợp phím mà bạn có thể dùng trong một ô bảng"
|
|
259
|
+
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr "Di chuyển vùng chọn đến ô tiếp theo"
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr "Di chuyển vùng chọn đến ô trước đó"
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr "Chèn một hàng mới trong bảng (khi ở ô cuối cùng của bảng)"
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
274
|
+
msgstr "Điều hướng qua bảng"
|
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "颜色选择器"
|
|
251
251
|
|
|
252
|
-
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
253
|
-
msgid "Toggle caption off"
|
|
254
|
-
msgstr "关闭表标题"
|
|
255
|
-
|
|
256
|
-
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
257
|
-
msgid "Toggle caption on"
|
|
258
|
-
msgstr "打开表标题"
|
|
259
|
-
|
|
260
252
|
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
261
253
|
msgid "Enter table caption"
|
|
262
254
|
msgstr "输入表标题"
|
|
255
|
+
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
|
+
msgstr "可在表格单元格中使用的按键"
|
|
259
|
+
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr "将所选内容移动到下一个单元格"
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr "将所选内容移至上一个单元格"
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr "插入新的表格行(当位于表格的最后一个单元格时)"
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
274
|
+
msgstr "在表格中进行导览"
|
package/lang/translations/zh.po
CHANGED
|
@@ -249,14 +249,26 @@ msgctxt "The label used by assistive technologies describing a button that opens
|
|
|
249
249
|
msgid "Color picker"
|
|
250
250
|
msgstr "顏色選擇"
|
|
251
251
|
|
|
252
|
-
msgctxt "The button label for the table toolbar hiding caption attached to the table."
|
|
253
|
-
msgid "Toggle caption off"
|
|
254
|
-
msgstr "關閉表標題"
|
|
255
|
-
|
|
256
|
-
msgctxt "The button label for the table toolbar showing caption attached to the table."
|
|
257
|
-
msgid "Toggle caption on"
|
|
258
|
-
msgstr "開啟表標題"
|
|
259
|
-
|
|
260
252
|
msgctxt "The placeholder text for the table caption displayed when the caption is empty."
|
|
261
253
|
msgid "Enter table caption"
|
|
262
254
|
msgstr "輸入表標題"
|
|
255
|
+
|
|
256
|
+
msgctxt "Accessibility help dialog header text displayed before the list of keystrokes that can be used in a table cell."
|
|
257
|
+
msgid "Keystrokes that can be used in a table cell"
|
|
258
|
+
msgstr "可在表格單元格中使用的按鍵"
|
|
259
|
+
|
|
260
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the next cell."
|
|
261
|
+
msgid "Move the selection to the next cell"
|
|
262
|
+
msgstr "將選取範圍移動到下一個單元格"
|
|
263
|
+
|
|
264
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving the selection to the previous cell."
|
|
265
|
+
msgid "Move the selection to the previous cell"
|
|
266
|
+
msgstr "將選取範圍移動到上一個單元格"
|
|
267
|
+
|
|
268
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for inserting a new table row."
|
|
269
|
+
msgid "Insert a new table row (when in the last cell of a table)"
|
|
270
|
+
msgstr "插入新的表格橫排(當位於表格的最後一個單元格時)"
|
|
271
|
+
|
|
272
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the table."
|
|
273
|
+
msgid "Navigate through the table"
|
|
274
|
+
msgstr "在表格中移動"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-table",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.2.0",
|
|
4
4
|
"description": "Table feature for 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
|
"lodash-es": "4.17.21"
|
|
18
18
|
},
|
|
19
19
|
"author": "CKSource (http://cksource.com/)",
|
package/src/tableclipboard.d.ts
CHANGED
|
@@ -2,6 +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 { ClipboardPipeline, ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
|
|
5
6
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
7
|
import type { DocumentFragment, Element, Item, Model, Position, Writer } from 'ckeditor5/src/engine.js';
|
|
7
8
|
import TableSelection from './tableselection.js';
|
|
@@ -19,7 +20,7 @@ export default class TableClipboard extends Plugin {
|
|
|
19
20
|
/**
|
|
20
21
|
* @inheritDoc
|
|
21
22
|
*/
|
|
22
|
-
static get requires(): readonly [typeof TableSelection, typeof TableUtils];
|
|
23
|
+
static get requires(): readonly [typeof ClipboardMarkersUtils, typeof ClipboardPipeline, typeof TableSelection, typeof TableUtils];
|
|
23
24
|
/**
|
|
24
25
|
* @inheritDoc
|
|
25
26
|
*/
|
|
@@ -44,6 +45,10 @@ export default class TableClipboard extends Plugin {
|
|
|
44
45
|
* If not provided the current model document selection will be used.
|
|
45
46
|
*/
|
|
46
47
|
private _onInsertContent;
|
|
48
|
+
/**
|
|
49
|
+
* Inserts provided `selectedTableCells` into `pastedTable`.
|
|
50
|
+
*/
|
|
51
|
+
private _replaceSelectedCells;
|
|
47
52
|
/**
|
|
48
53
|
* Replaces the part of selectedTable with pastedTable.
|
|
49
54
|
*/
|
package/src/tableclipboard.js
CHANGED
|
@@ -2,6 +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 { ClipboardPipeline, ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
|
|
5
6
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
7
|
import TableSelection from './tableselection.js';
|
|
7
8
|
import TableWalker from './tablewalker.js';
|
|
@@ -22,7 +23,7 @@ export default class TableClipboard extends Plugin {
|
|
|
22
23
|
* @inheritDoc
|
|
23
24
|
*/
|
|
24
25
|
static get requires() {
|
|
25
|
-
return [TableSelection, TableUtils];
|
|
26
|
+
return [ClipboardMarkersUtils, ClipboardPipeline, TableSelection, TableUtils];
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* @inheritDoc
|
|
@@ -42,7 +43,9 @@ export default class TableClipboard extends Plugin {
|
|
|
42
43
|
* @param data Clipboard event data.
|
|
43
44
|
*/
|
|
44
45
|
_onCopyCut(evt, data) {
|
|
46
|
+
const view = this.editor.editing.view;
|
|
45
47
|
const tableSelection = this.editor.plugins.get(TableSelection);
|
|
48
|
+
const clipboardMarkersUtils = this.editor.plugins.get(ClipboardMarkersUtils);
|
|
46
49
|
if (!tableSelection.getSelectedTableCells()) {
|
|
47
50
|
return;
|
|
48
51
|
}
|
|
@@ -51,12 +54,10 @@ export default class TableClipboard extends Plugin {
|
|
|
51
54
|
}
|
|
52
55
|
data.preventDefault();
|
|
53
56
|
evt.stop();
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
const content = dataController.toView(tableSelection.getSelectionAsFragment());
|
|
57
|
-
viewDocument.fire('clipboardOutput', {
|
|
57
|
+
const fragment = clipboardMarkersUtils._copySelectedFragmentWithMarkers(evt.name, this.editor.model.document.selection, () => tableSelection.getSelectionAsFragment());
|
|
58
|
+
view.document.fire('clipboardOutput', {
|
|
58
59
|
dataTransfer: data.dataTransfer,
|
|
59
|
-
content,
|
|
60
|
+
content: this.editor.data.toView(fragment),
|
|
60
61
|
method: evt.name
|
|
61
62
|
});
|
|
62
63
|
}
|
|
@@ -78,8 +79,9 @@ export default class TableClipboard extends Plugin {
|
|
|
78
79
|
}
|
|
79
80
|
const model = this.editor.model;
|
|
80
81
|
const tableUtils = this.editor.plugins.get(TableUtils);
|
|
82
|
+
const clipboardMarkersUtils = this.editor.plugins.get(ClipboardMarkersUtils);
|
|
81
83
|
// We might need to crop table before inserting so reference might change.
|
|
82
|
-
|
|
84
|
+
const pastedTable = this.getTableIfOnlyTableInContent(content, model);
|
|
83
85
|
if (!pastedTable) {
|
|
84
86
|
return;
|
|
85
87
|
}
|
|
@@ -90,44 +92,57 @@ export default class TableClipboard extends Plugin {
|
|
|
90
92
|
}
|
|
91
93
|
// Override default model.insertContent() handling at this point.
|
|
92
94
|
evt.stop();
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
95
|
+
if (content.is('documentFragment')) {
|
|
96
|
+
clipboardMarkersUtils._pasteMarkersIntoTransformedElement(content.markers, writer => this._replaceSelectedCells(pastedTable, selectedTableCells, writer));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
this.editor.model.change(writer => {
|
|
100
|
+
this._replaceSelectedCells(pastedTable, selectedTableCells, writer);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Inserts provided `selectedTableCells` into `pastedTable`.
|
|
106
|
+
*/
|
|
107
|
+
_replaceSelectedCells(pastedTable, selectedTableCells, writer) {
|
|
108
|
+
const tableUtils = this.editor.plugins.get(TableUtils);
|
|
109
|
+
const pastedDimensions = {
|
|
110
|
+
width: tableUtils.getColumns(pastedTable),
|
|
111
|
+
height: tableUtils.getRows(pastedTable)
|
|
112
|
+
};
|
|
113
|
+
// Prepare the table for pasting.
|
|
114
|
+
const selection = prepareTableForPasting(selectedTableCells, pastedDimensions, writer, tableUtils);
|
|
115
|
+
// Beyond this point we operate on a fixed content table with rectangular selection and proper last row/column values.
|
|
116
|
+
const selectionHeight = selection.lastRow - selection.firstRow + 1;
|
|
117
|
+
const selectionWidth = selection.lastColumn - selection.firstColumn + 1;
|
|
118
|
+
// Crop pasted table if:
|
|
119
|
+
// - Pasted table dimensions exceeds selection area.
|
|
120
|
+
// - Pasted table has broken layout (ie some cells sticks out by the table dimensions established by the first and last row).
|
|
121
|
+
//
|
|
122
|
+
// Note: The table dimensions are established by the width of the first row and the total number of rows.
|
|
123
|
+
// It is possible to programmatically create a table that has rows which would have cells anchored beyond first row width but
|
|
124
|
+
// such table will not be created by other editing solutions.
|
|
125
|
+
const cropDimensions = {
|
|
126
|
+
startRow: 0,
|
|
127
|
+
startColumn: 0,
|
|
128
|
+
endRow: Math.min(selectionHeight, pastedDimensions.height) - 1,
|
|
129
|
+
endColumn: Math.min(selectionWidth, pastedDimensions.width) - 1
|
|
130
|
+
};
|
|
131
|
+
pastedTable = cropTableToDimensions(pastedTable, cropDimensions, writer);
|
|
132
|
+
// Content table to which we insert a pasted table.
|
|
133
|
+
const selectedTable = selectedTableCells[0].findAncestor('table');
|
|
134
|
+
const cellsToSelect = this._replaceSelectedCellsWithPasted(pastedTable, pastedDimensions, selectedTable, selection, writer);
|
|
135
|
+
if (this.editor.plugins.get('TableSelection').isEnabled) {
|
|
136
|
+
// Selection ranges must be sorted because the first and last selection ranges are considered
|
|
137
|
+
// as anchor/focus cell ranges for multi-cell selection.
|
|
138
|
+
const selectionRanges = tableUtils.sortRanges(cellsToSelect.map(cell => writer.createRangeOn(cell)));
|
|
139
|
+
writer.setSelection(selectionRanges);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
// Set selection inside first cell if multi-cell selection is disabled.
|
|
143
|
+
writer.setSelection(cellsToSelect[0], 0);
|
|
144
|
+
}
|
|
145
|
+
return selectedTable;
|
|
131
146
|
}
|
|
132
147
|
/**
|
|
133
148
|
* Replaces the part of selectedTable with pastedTable.
|
package/src/tablekeyboard.js
CHANGED
|
@@ -31,11 +31,36 @@ export default class TableKeyboard extends Plugin {
|
|
|
31
31
|
* @inheritDoc
|
|
32
32
|
*/
|
|
33
33
|
init() {
|
|
34
|
-
const
|
|
34
|
+
const editor = this.editor;
|
|
35
|
+
const view = editor.editing.view;
|
|
35
36
|
const viewDocument = view.document;
|
|
37
|
+
const t = editor.t;
|
|
36
38
|
this.listenTo(viewDocument, 'arrowKey', (...args) => this._onArrowKey(...args), { context: 'table' });
|
|
37
39
|
this.listenTo(viewDocument, 'tab', (...args) => this._handleTabOnSelectedTable(...args), { context: 'figure' });
|
|
38
40
|
this.listenTo(viewDocument, 'tab', (...args) => this._handleTab(...args), { context: ['th', 'td'] });
|
|
41
|
+
// Add the information about the keystrokes to the accessibility database.
|
|
42
|
+
editor.accessibility.addKeystrokeInfoGroup({
|
|
43
|
+
id: 'table',
|
|
44
|
+
label: t('Keystrokes that can be used in a table cell'),
|
|
45
|
+
keystrokes: [
|
|
46
|
+
{
|
|
47
|
+
label: t('Move the selection to the next cell'),
|
|
48
|
+
keystroke: 'Tab'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: t('Move the selection to the previous cell'),
|
|
52
|
+
keystroke: 'Shift+Tab'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: t('Insert a new table row (when in the last cell of a table)'),
|
|
56
|
+
keystroke: 'Tab'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: t('Navigate through the table'),
|
|
60
|
+
keystroke: [['arrowup'], ['arrowright'], ['arrowdown'], ['arrowleft']]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
});
|
|
39
64
|
}
|
|
40
65
|
/**
|
|
41
66
|
* Handles {@link module:engine/view/document~Document#event:tab tab} events for the <kbd>Tab</kbd> key executed
|
package/src/tableutils.js
CHANGED
|
@@ -656,7 +656,10 @@ export default class TableUtils extends Plugin {
|
|
|
656
656
|
// Using the first row without checking if it's a tableRow because we expect
|
|
657
657
|
// that table will have only tableRow model elements at the beginning.
|
|
658
658
|
const row = table.getChild(0);
|
|
659
|
-
return [...row.getChildren()]
|
|
659
|
+
return [...row.getChildren()]
|
|
660
|
+
// $marker elements can also be children of a row too (when TrackChanges is on). Don't include them in the count.
|
|
661
|
+
.filter(node => node.is('element', 'tableCell'))
|
|
662
|
+
.reduce((columns, row) => {
|
|
660
663
|
const columnWidth = parseInt(row.getAttribute('colspan') || '1');
|
|
661
664
|
return columns + columnWidth;
|
|
662
665
|
}, 0);
|