Explorar o código

The mention attribute element should have higher priority then others.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
863478c5ab
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/ckeditor5-mention/src/mentionediting.js

+ 2 - 1
packages/ckeditor5-mention/src/mentionediting.js

@@ -110,7 +110,8 @@ function createViewMentionElement( mention, viewWriter ) {
 	};
 
 	const options = {
-		id: mention._id
+		id: mention._id,
+		priority: 20
 	};
 
 	return viewWriter.createAttributeElement( 'span', attributes, options );