Przeglądaj źródła

Add more buttons to the Table snippet toolbar

panr 5 lat temu
rodzic
commit
b1fc55a8c3

+ 4 - 4
packages/ckeditor5-table/docs/_snippets/features/build-table-source.js

@@ -7,13 +7,13 @@
 
 import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
 
-import Table from '@ckeditor/ckeditor5-table/src/table';
-import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar';
+import FontFamily from '@ckeditor/ckeditor5-font/src/fontfamily';
+import FontSize from '@ckeditor/ckeditor5-font/src/fontsize';
+import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
 import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties';
 import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties';
 
-ClassicEditor.builtinPlugins.push( Table );
-ClassicEditor.builtinPlugins.push( TableToolbar );
+ClassicEditor.builtinPlugins.push( FontFamily, FontSize, Alignment );
 
 window.ClassicEditor = ClassicEditor;
 window.CKEditorPlugins = {

+ 15 - 1
packages/ckeditor5-table/docs/_snippets/features/table-styling-colors.js

@@ -99,7 +99,21 @@ ClassicEditor
 		cloudServices: CS_CONFIG,
 		toolbar: {
 			items: [
-				'insertTable', '|', 'heading', '|', 'bold', 'italic', '|', 'undo', 'redo'
+				'insertTable',
+				'|',
+				'fontFamily', 'fontSize',
+				'|',
+				'bold', 'italic',
+				'|',
+				'alignment:left', 'alignment:center', 'alignment:right',	'alignment:justify',
+				'|',
+				'bulletedList', 'numberedList',
+				'|',
+				'indent', 'outdent',
+				'|',
+				'link', 'blockQuote',
+				'|',
+				'undo', 'redo'
 			],
 			viewportTopOffset: window.getViewportTopOffsetConfig()
 		},

+ 15 - 1
packages/ckeditor5-table/docs/_snippets/features/table-styling.js

@@ -100,7 +100,21 @@ ClassicEditor
 		cloudServices: CS_CONFIG,
 		toolbar: {
 			items: [
-				'insertTable', '|', 'heading', '|', 'bold', 'italic', '|', 'undo', 'redo'
+				'insertTable',
+				'|',
+				'fontFamily', 'fontSize',
+				'|',
+				'bold', 'italic',
+				'|',
+				'alignment:left', 'alignment:center', 'alignment:right',	'alignment:justify',
+				'|',
+				'bulletedList', 'numberedList',
+				'|',
+				'indent', 'outdent',
+				'|',
+				'link', 'blockQuote',
+				'|',
+				'undo', 'redo'
 			],
 			viewportTopOffset: window.getViewportTopOffsetConfig()
 		},

+ 15 - 1
packages/ckeditor5-table/docs/_snippets/features/table.js

@@ -12,7 +12,21 @@ ClassicEditor
 		cloudServices: CS_CONFIG,
 		toolbar: {
 			items: [
-				'insertTable', '|', 'heading', '|', 'bold', 'italic', '|', 'undo', 'redo'
+				'insertTable',
+				'|',
+				'fontFamily', 'fontSize',
+				'|',
+				'bold', 'italic',
+				'|',
+				'alignment:left', 'alignment:center', 'alignment:right',	'alignment:justify',
+				'|',
+				'bulletedList', 'numberedList',
+				'|',
+				'indent', 'outdent',
+				'|',
+				'link', 'blockQuote',
+				'|',
+				'undo', 'redo'
 			],
 			viewportTopOffset: window.getViewportTopOffsetConfig()
 		},