浏览代码

Update packages/ckeditor5-engine/src/conversion/upcasthelpers.js

Maciej 5 年之前
父节点
当前提交
423ab2a168
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-engine/src/conversion/upcasthelpers.js

+ 1 - 1
packages/ckeditor5-engine/src/conversion/upcasthelpers.js

@@ -650,7 +650,7 @@ function upcastDataToMarker( config ) {
 		//
 		//
 		const basePriority = priorities.get( 'low' );
 		const basePriority = priorities.get( 'low' );
 		const maxPriority = priorities.get( 'highest' );
 		const maxPriority = priorities.get( 'highest' );
-		const priorityFactor = priorities.get( config.converterPriority ) / maxPriority; // Number in range [1, -1].
+		const priorityFactor = priorities.get( config.converterPriority ) / maxPriority; // Number in range [ -1, 1 ].
 
 
 		dispatcher.on( 'element', upcastAttributeToMarker( config ), { priority: basePriority + priorityFactor } );
 		dispatcher.on( 'element', upcastAttributeToMarker( config ), { priority: basePriority + priorityFactor } );
 	};
 	};