浏览代码

Docs: Update custom-heading-elements snippet to the latest conversion API changes.

Maciej Gołaszewski 7 年之前
父节点
当前提交
189d50d210

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

@@ -23,7 +23,7 @@ ClassicEditor
 					},
 					title: 'Heading 2 (fancy)',
 					class: 'ck-heading_heading2_fancy',
-					priority: 'high'
+					converterPriority: 'high'
 				}
 			]
 		},

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

@@ -52,7 +52,7 @@ ClassicEditor
 
 ### Configuring custom heading elements
 
-It is also possible to define fully custom elements for headings by using the {@link module:engine/view/elementdefinition~ElementDefinition advanced format} of the {@link module:heading/heading~HeadingConfig#options `heading.options`} configuration option.
+It is also possible to define fully custom elements for headings by using the {@link module:engine/conversion/conversion~ConverterDefinition advanced format} of the {@link module:heading/heading~HeadingConfig#options `heading.options`} configuration option.
 
 For example, the following editor will support the following two heading options at the same time: `<h2 class="fancy">` and `<h2>`:
 
@@ -91,7 +91,7 @@ ClassicEditor
 					class: 'ck-heading_heading2_fancy',
 
 					// It needs to be converted before the standard 'heading2'.
-					priority: 'high'
+					converterPriority: 'high'
 				}
 			]
 		}

+ 1 - 0
packages/ckeditor5-heading/src/heading.js

@@ -113,4 +113,5 @@ export default class Heading extends Plugin {
  * @property {String} class The class which will be added to the dropdown item representing this option.
  * @property {String} [icon] Icon used by {@link module:heading/headingbuttonsui~HeadingButtonsUI}. It can be omitted when using
  * the default configuration.
+ * @extends module:engine/conversion/conversion~ConverterDefinition
  */