8
0
Просмотр исходного кода

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

Other: Aligned to changes in ckeditor5-engine.
Piotr Jasiun 7 лет назад
Родитель
Сommit
d47808649a
1 измененных файлов с 1 добавлено и 1 удалено
  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;