소스 검색

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

Maciej Gołaszewski 7 년 전
부모
커밋
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',