Переглянути джерело

Other: Aligned to changes in ckeditor5-engine.

Szymon Cofalik 8 роки тому
батько
коміт
c8ffc7cc27
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;