소스 검색

Add table to restricted document manual test.

Maciej Gołaszewski 6 년 전
부모
커밋
17c277e8bb
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 11 3
      packages/ckeditor5-restricted-editing/tests/manual/restricteddocument.js

+ 11 - 3
packages/ckeditor5-restricted-editing/tests/manual/restricteddocument.js

@@ -6,20 +6,28 @@
 /* globals console, window, document */
 /* globals console, window, document */
 
 
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
-
 import ArticlePluginSet from '../_utils/articlepluginset';
 import ArticlePluginSet from '../_utils/articlepluginset';
+import Table from '@ckeditor/ckeditor5-table/src/table';
+
 import RestrictedDocument from '../../src/restricteddocument';
 import RestrictedDocument from '../../src/restricteddocument';
 
 
 ClassicEditor
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
 	.create( document.querySelector( '#editor' ), {
-		plugins: [ ArticlePluginSet, RestrictedDocument ],
+		plugins: [ ArticlePluginSet, Table, RestrictedDocument ],
 		toolbar: [ 'heading', '|',
 		toolbar: [ 'heading', '|',
 			'bold', 'italic', 'link', '|',
 			'bold', 'italic', 'link', '|',
-			'bulletedList', 'numberedList', 'blockQuote', '|',
+			'bulletedList', 'numberedList', 'blockQuote', 'insertTable', '|',
 			'nonRestricted', '|', 'undo', 'redo'
 			'nonRestricted', '|', 'undo', 'redo'
 		],
 		],
 		image: {
 		image: {
 			toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
 			toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
+		},
+		table: {
+			contentToolbar: [
+				'tableColumn',
+				'tableRow',
+				'mergeTableCells'
+			]
 		}
 		}
 	} )
 	} )
 	.then( editor => {
 	.then( editor => {