소스 검색

Fix: Provided correct priority for attribute-to-marker upcast.

Szymon Cofalik 5 년 전
부모
커밋
dad2a058f3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/ckeditor5-engine/src/conversion/upcasthelpers.js

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

@@ -601,7 +601,8 @@ function upcastDataToMarker( config ) {
 		dispatcher.on( 'element:' + config.view + '-start', converterStart, { priority: config.converterPriority || 'normal' } );
 		dispatcher.on( 'element:' + config.view + '-end', converterEnd, { priority: config.converterPriority || 'normal' } );
 
-		dispatcher.on( 'element', upcastAttributeToMarker( config ), { priority: config.converterPriority || 'normal' } );
+		// This is attribute upcast so it has to be done after the element upcast.
+		dispatcher.on( 'element', upcastAttributeToMarker( config ), { priority: config.converterPriority || 'low' } );
 	};
 }