8
0
Quellcode durchsuchen

Docs: Removed the alignment plugin from the toolbars.

Marek Lewandowski vor 6 Jahren
Ursprung
Commit
769323a8f5

+ 0 - 2
packages/ckeditor5-special-characters/docs/_snippets/features/special-characters-extended-category.js

@@ -24,8 +24,6 @@ ClassicEditor
 				'outdent',
 				'indent',
 				'|',
-				'alignment',
-				'|',
 				'specialCharacters',
 				'blockQuote',
 				'link',

+ 11 - 2
packages/ckeditor5-special-characters/docs/_snippets/features/special-characters-new-category.js

@@ -7,6 +7,16 @@
 
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
 
+function ExtraCat( editor ) {
+	editor.plugins.get( 'SpecialCharacters' ).addItems( 'Emoji2', [
+		{ title: 'smiley face', character: '😊' },
+		{ title: 'rocket', character: '🚀' },
+		{ title: 'basketball', character: '🏀' },
+		{ title: 'floppy disk', character: '💾' },
+		{ title: 'hearth', character: '❤' }
+	] );
+}
+
 ClassicEditor
 	.create( document.querySelector( '#snippet-special-characters-new-category' ), {
 		removePlugins: [
@@ -24,8 +34,6 @@ ClassicEditor
 				'outdent',
 				'indent',
 				'|',
-				'alignment',
-				'|',
 				'specialCharacters',
 				'blockQuote',
 				'link',
@@ -52,6 +60,7 @@ ClassicEditor
 				'imageTextAlternative'
 			]
 		},
+		extraPlugins: [ ExtraCat ],
 		table: {
 			contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
 		},

+ 0 - 2
packages/ckeditor5-special-characters/docs/_snippets/features/special-characters.js

@@ -25,8 +25,6 @@ ClassicEditor
 				'outdent',
 				'indent',
 				'|',
-				'alignment',
-				'|',
 				'specialCharacters',
 				'blockQuote',
 				'link',