Explorar el Código

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

Szymon Cofalik hace 5 años
padre
commit
dad2a058f3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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' } );
 	};
 }