Explorar el Código

Merge pull request #178 from ckeditor/t/ckeditor5-engine/1226

Other: Aligned to changes in ckeditor5-engine.
Piotr Jasiun hace 7 años
padre
commit
d47808649a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-link/src/utils.js

+ 1 - 1
packages/ckeditor5-link/src/utils.js

@@ -27,7 +27,7 @@ export function isLinkElement( node ) {
  */
 export function createLinkElement( href, writer ) {
 	// Priority 5 - https://github.com/ckeditor/ckeditor5-link/issues/121.
-	const linkElement = writer.createAttributeElement( 'a', { href }, 5 );
+	const linkElement = writer.createAttributeElement( 'a', { href }, { priority: 5 } );
 	writer.setCustomProperty( linkElementSymbol, true, linkElement );
 
 	return linkElement;