Ver código fonte

Merge pull request #103 from ckeditor/t/ckeditor5/742

Other: Aligned `ElementDefinition` usage to the changes in the engine. See ckeditor/ckeditor5#742.

BREAKING CHANGES: In the custom format of the heading feature configuration the `view.style`, `view.class` and `view.attribute` properties are now called `view.styles`, `view.classes` and `view.attributes`.
Piotrek Koszuliński 7 anos atrás
pai
commit
a033ba25f5

+ 1 - 1
packages/ckeditor5-heading/docs/_snippets/features/custom-heading-elements.js

@@ -19,7 +19,7 @@ ClassicEditor
 					model: 'headingFancy',
 					view: {
 						name: 'h2',
-						class: 'fancy'
+						classes: 'fancy'
 					},
 					title: 'Heading 2 (fancy)',
 					class: 'ck-heading_heading2_fancy',

+ 1 - 1
packages/ckeditor5-heading/docs/features/headings.md

@@ -85,7 +85,7 @@ ClassicEditor
 					model: 'headingFancy',
 					view: {
 						name: 'h2',
-						class: 'fancy'
+						classes: 'fancy'
 					},
 					title: 'Heading 2 (fancy)',
 					class: 'ck-heading_heading2_fancy',

+ 1 - 1
packages/ckeditor5-heading/tests/headingediting.js

@@ -85,7 +85,7 @@ describe( 'HeadingEditing', () => {
 								model: 'heading1',
 								view: 'h1',
 								upcastAlso: [
-									{ name: 'p', attribute: { 'data-heading': 'h1' } }
+									{ name: 'p', attributes: { 'data-heading': 'h1' } }
 								],
 								title: 'User H1',
 								priority: 'high'

+ 1 - 1
packages/ckeditor5-heading/tests/integration.js

@@ -128,7 +128,7 @@ describe( 'Heading integration', () => {
 								model: 'headingFancy',
 								view: {
 									name: 'h2',
-									class: 'fancy'
+									classes: 'fancy'
 								},
 								title: 'Heading 2 (fancy)',
 								class: 'ck-heading_heading2_fancy',