Sfoglia il codice sorgente

Merge pull request #39 from ckeditor/t/12

Internal: Marked `<tableRow>` and `<tableCell>` as limit elements in the schema. See ckeditor/ckeditor5-engine#1431.
Piotrek Koszuliński 7 anni fa
parent
commit
9579f452d9
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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',