Explorar o código

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

Maciej Gołaszewski %!s(int64=7) %!d(string=hai) anos
pai
achega
455b674c3b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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',