8
0
Просмотр исходного кода

Changed: Prevent partial table selection by setting isLimit=true in schema for table, tableCell and tableRow elements.

Maciej Gołaszewski 7 лет назад
Родитель
Сommit
455b674c3b
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      packages/ckeditor5-table/src/tableediting.js

+ 5 - 1
packages/ckeditor5-table/src/tableediting.js

@@ -52,10 +52,14 @@ export default class TableEditing extends Plugin {
 		schema.register( 'table', {
 			allowWhere: '$block',
 			allowAttributes: [ 'headingRows', 'headingColumns' ],
+			isLimit: true,
 			isObject: true
 		} );
 
-		schema.register( 'tableRow', { allowIn: 'table' } );
+		schema.register( 'tableRow', {
+			allowIn: 'table',
+			isLimit: true
+		} );
 
 		schema.register( 'tableCell', {
 			allowIn: 'tableRow',