Explorar o código

Merge pull request #881 from ckeditor/t/ckeditor5-alignment/16

Other: Align code to the changes in naming UI components & commands.
Piotrek Koszuliński %!s(int64=7) %!d(string=hai) anos
pai
achega
f6416caffc

+ 1 - 1
docs/_snippets/examples/custom-build.js

@@ -32,7 +32,7 @@ ClassicEditor
 			EasyImage
 		],
 		toolbar: {
-			items: [ 'bold', 'italic', 'underline', 'strikethrough', 'code', '|', 'highlightDropdown', '|', 'undo', 'redo' ],
+			items: [ 'bold', 'italic', 'underline', 'strikethrough', 'code', '|', 'highlight', '|', 'undo', 'redo' ],
 			viewportTopOffset: 60
 		},
 		cloudServices: CS_CONFIG

+ 3 - 3
docs/_snippets/examples/inline-editor.js

@@ -13,8 +13,8 @@ const inlineInjectElements = document.querySelectorAll( '#snippet-inline-editor
 Array.from( inlineInjectElements ).forEach( inlineElement => {
 	const config = {
 		image: {
-			toolbar: [ 'imageTextAlternative', '|', 'imageStyleAlignLeft', 'imageStyleFull', 'imageStyleAlignRight' ],
-			styles: [ 'imageStyleFull', 'imageStyleAlignLeft', 'imageStyleAlignRight' ]
+			toolbar: [ 'imageTextAlternative', '|', 'imageStyle:alignLeft', 'imageStyle:full', 'imageStyle:alignRight' ],
+			styles: [ 'full', 'alignLeft', 'alignRight' ]
 		},
 		toolbar: {
 			viewportTopOffset: 60
@@ -34,7 +34,7 @@ Array.from( inlineInjectElements ).forEach( inlineElement => {
 			'EasyImage',
 			'CKFinderUploadAdapter'
 		];
-		config.toolbar.items = [ 'headings', '|', 'bold', 'italic', 'link' ];
+		config.toolbar.items = [ 'heading', '|', 'bold', 'italic', 'link' ];
 	}
 
 	InlineEditor

+ 1 - 1
docs/builds/guides/development/custom-builds.md

@@ -112,7 +112,7 @@ module.exports = {
 
 	// Editor configuration.
 	config: {
-		toolbar: [ 'headings', '|', 'bold', 'italic', 'custombutton' ],
+		toolbar: [ 'heading', '|', 'bold', 'italic', 'custombutton' ],
 
 		// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
 		language: 'en'

+ 4 - 4
docs/builds/guides/development/installing-plugins.md

@@ -71,8 +71,8 @@ module.exports = {
 	config: {
 		toolbar: {
 			items: [
-				'headings',
-				'alignmentDropdown', //                      <--- ADDED
+				'heading',
+				'alignment', //                      <--- ADDED
 				'bold',
 				'italic',
 				'link',
@@ -85,7 +85,7 @@ module.exports = {
 		},
 
 		image: {
-			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
+			toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
 		},
 
 		// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
@@ -201,7 +201,7 @@ ClassicEditor.build = {
 	config: {
 		toolbar: {
 			items: [
-				'headings',
+				'heading',
 				'bold',
 				// ...
 			]

+ 6 - 6
docs/builds/guides/integration/advanced-setup.md

@@ -196,7 +196,7 @@ ClassicEditor.build = {
 	],
 	config: {
 		toolbar: [
-			'headings',
+			'heading',
 			'bold',
 			'italic',
 			'link',
@@ -208,8 +208,8 @@ ClassicEditor.build = {
 		],
 		image: {
 			toolbar: [
-				'imageStyleFull',
-				'imageStyleSide',
+				'imageStyle:full',
+				'imageStyle:side',
 				'|',
 				'imageTextAlternative'
 			]
@@ -275,7 +275,7 @@ ClassicEditor
 
 		// So is the rest of the default configuration.
 		toolbar: [
-			'headings',
+			'heading',
 			'bold',
 			'italic',
 			'link',
@@ -287,8 +287,8 @@ ClassicEditor
 		],
 		image: {
 			toolbar: [
-				'imageStyleFull',
-				'imageStyleSide',
+				'imageStyle:full',
+				'imageStyle:side',
 				'|',
 				'imageTextAlternative'
 			]

+ 1 - 1
docs/builds/guides/integration/configuration.md

@@ -15,7 +15,7 @@ When creating an editor in your page, it is possible to set up {@link module:cor
 ```js
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
-		toolbar: [ 'headings', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote' ],
+		toolbar: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote' ],
 		heading: {
 			options: [
 				{ modelElement: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },