浏览代码

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

Other: Aligned to changes in ckeditor5-engine.
Piotr Jasiun 7 年之前
父节点
当前提交
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 ) {
 export function createLinkElement( href, writer ) {
 	// Priority 5 - https://github.com/ckeditor/ckeditor5-link/issues/121.
 	// 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 );
 	writer.setCustomProperty( linkElementSymbol, true, linkElement );
 
 
 	return linkElement;
 	return linkElement;