8
0
Pārlūkot izejas kodu

Tests: Added table properties plugin to rich editor performance test.

Marek Lewandowski 5 gadi atpakaļ
vecāks
revīzija
695915f917

+ 17 - 12
tests/manual/performance/richeditor.html

@@ -69,18 +69,23 @@
 		An example blockquote text.
 	</blockquote>
 
-	<table>
-		<tbody>
-			<tr>
-				<td>cell</td>
-				<td>cell</td>
-			</tr>
-			<tr>
-				<td>cell</td>
-				<td>cell</td>
-			</tr>
-		</tbody>
-	</table>
+	<figure>
+		<table style="border: 1px solid green;background:#fdfd77;width:200px;height:140px">
+			<thead>
+				<tr>
+					<td><p>header</p></td>
+					<td style="border:2px dashed black;background-color: lightblue"><p>styled header</p></td>
+				</tr>
+			</thead>
+			<tbody>
+				<tr>
+					<td style="border:2px dashed black;background-color: lightblue"><p>styled cell</p></td>
+					<td><p>cell</p></td>
+				</tr>
+
+			</tbody>
+		</table>
+	</figure>
 
 	<figure class="media">
 		<oembed url="https://www.youtube.com/watch?v=CB70skVw3nU"></oembed>

+ 5 - 1
tests/manual/performance/richeditor.js

@@ -30,6 +30,8 @@ import PasteFromOffice from '@ckeditor/ckeditor5-paste-from-office/src/pastefrom
 import RemoveFormat from '@ckeditor/ckeditor5-remove-format/src/removeformat';
 import StandardEditingMode from '@ckeditor/ckeditor5-restricted-editing/src/standardeditingmode';
 import SpecialCharacters from '@ckeditor/ckeditor5-special-characters/src/specialcharacters';
+import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties';
+import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties';
 import ImageUpload from '@ckeditor/ckeditor5-image/src/imageupload';
 import ImageResize from '@ckeditor/ckeditor5-image/src/imageresize';
 import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock';
@@ -66,6 +68,8 @@ ClassicEditor
 			RemoveFormat,
 			StandardEditingMode,
 			SpecialCharacters,
+			TableProperties,
+			TableCellProperties,
 			ImageUpload,
 			ImageResize,
 			WordCount,
@@ -112,7 +116,7 @@ ClassicEditor
 			shouldNotGroupWhenFull: true
 		},
 		table: {
-			contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
+			contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', 'tableCellProperties' ]
 		},
 		image: {
 			toolbar: [ 'imageStyle:full', 'imageStyle:side', 'imageTextAlternative' ]