From 5be7c4ea7332937cc677b03c8eb10f8e3bde9217 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Tue, 15 May 2018 08:20:58 +0200 Subject: [PATCH] Renamed conversion priority property to `converterPriority`. --- src/conversion/conversion.js | 4 ++-- src/conversion/downcast-converters.js | 10 +++++----- src/conversion/upcast-converters.js | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/conversion/conversion.js b/src/conversion/conversion.js index 18c97c288..428132f43 100644 --- a/src/conversion/conversion.js +++ b/src/conversion/conversion.js @@ -164,7 +164,7 @@ export default class Conversion { * conversion.elementToElement( { model: 'paragraph', view: 'p' } ); * * // Override other converters by specifying converter definition with higher priority. - * conversion.elementToElement( { model: 'paragraph', view: 'div', priority: 'high' } ); + * conversion.elementToElement( { model: 'paragraph', view: 'div', converterPriority: 'high' } ); * * // View specified as an object instead of a string. * conversion.elementToElement( { @@ -251,7 +251,7 @@ export default class Conversion { * conversion.attributeToElement( { model: 'bold', view: 'strong' } ); * * // Override other converters by specifying converter definition with higher priority. - * conversion.attributeToElement( { model: 'bold', view: 'b', priority: 'high' } ); + * conversion.attributeToElement( { model: 'bold', view: 'b', converterPriority: 'high' } ); * * // View specified as an object instead of a string. * conversion.attributeToElement( { diff --git a/src/conversion/downcast-converters.js b/src/conversion/downcast-converters.js index 687333162..c9e12e096 100644 --- a/src/conversion/downcast-converters.js +++ b/src/conversion/downcast-converters.js @@ -26,7 +26,7 @@ import cloneDeep from '@ckeditor/ckeditor5-utils/src/lib/lodash/cloneDeep'; * * downcastElementToElement( { model: 'paragraph', view: 'p' } ); * - * downcastElementToElement( { model: 'paragraph', view: 'div', priority: 'high' } ); + * downcastElementToElement( { model: 'paragraph', view: 'div', converterPriority: 'high' } ); * * downcastElementToElement( { * model: 'fancyParagraph', @@ -67,7 +67,7 @@ export function downcastElementToElement( config ) { * * downcastAttributeToElement( { model: 'bold', view: 'strong' } ); * - * downcastAttributeToElement( { model: 'bold', view: 'b', priority: 'high' } ); + * downcastAttributeToElement( { model: 'bold', view: 'b', converterPriority: 'high' } ); * * downcastAttributeToElement( { * model: 'invert', @@ -159,7 +159,7 @@ export function downcastAttributeToElement( config ) { * * downcastAttributeToAttribute( { model: 'source', view: 'src' } ); * - * downcastAttributeToAttribute( { model: 'source', view: 'href', priority: 'high' } ); + * downcastAttributeToAttribute( { model: 'source', view: 'href', converterPriority: 'high' } ); * * downcastAttributeToAttribute( { * model: { @@ -238,7 +238,7 @@ export function downcastAttributeToAttribute( config ) { * * downcastMarkerToElement( { model: 'search', view: 'marker-search' } ); * - * downcastMarkerToElement( { model: 'search', view: 'search-result', priority: 'high' } ); + * downcastMarkerToElement( { model: 'search', view: 'search-result', converterPriority: 'high' } ); * * downcastMarkerToElement( { * model: 'search', @@ -307,7 +307,7 @@ export function downcastMarkerToElement( config ) { * * downcastMarkerToHighlight( { model: 'comment', view: { classes: 'comment' } } ); * - * downcastMarkerToHighlight( { model: 'comment', view: { classes: 'new-comment' }, priority: 'high' } ); + * downcastMarkerToHighlight( { model: 'comment', view: { classes: 'new-comment' }, converterPriority: 'high' } ); * * downcastMarkerToHighlight( { * model: 'comment', diff --git a/src/conversion/upcast-converters.js b/src/conversion/upcast-converters.js index f306fd51a..2c4604396 100644 --- a/src/conversion/upcast-converters.js +++ b/src/conversion/upcast-converters.js @@ -26,7 +26,7 @@ import cloneDeep from '@ckeditor/ckeditor5-utils/src/lib/lodash/cloneDeep'; * * upcastElementToElement( { view: 'p', model: 'paragraph' } ); * - * upcastElementToElement( { view: 'p', model: 'paragraph', priority: 'high' } ); + * upcastElementToElement( { view: 'p', model: 'paragraph', converterPriority: 'high' } ); * * upcastElementToElement( { * view: { @@ -78,7 +78,7 @@ export function upcastElementToElement( config ) { * * upcastElementToAttribute( { view: 'strong', model: 'bold' } ); * - * upcastElementToAttribute( { view: 'strong', model: 'bold', priority: 'high' } ); + * upcastElementToAttribute( { view: 'strong', model: 'bold', converterPriority: 'high' } ); * * upcastElementToAttribute( { * view: { @@ -160,7 +160,7 @@ export function upcastElementToAttribute( config ) { * * upcastAttributeToAttribute( { view: { key: 'src' }, model: 'source' } ); * - * upcastAttributeToAttribute( { view: { key: 'src' }, model: 'source', priority: 'normal' } ); + * upcastAttributeToAttribute( { view: { key: 'src' }, model: 'source', converterPriority: 'normal' } ); * * upcastAttributeToAttribute( { * view: { @@ -240,7 +240,7 @@ export function upcastAttributeToAttribute( config ) { * * upcastElementToMarker( { view: 'marker-search', model: 'search' } ); * - * upcastElementToMarker( { view: 'marker-search', model: 'search', priority: 'high' } ); + * upcastElementToMarker( { view: 'marker-search', model: 'search', converterPriority: 'high' } ); * * upcastElementToMarker( { * view: 'marker-search',