8
0
فهرست منبع

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' } );
 	};
 }