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

The mention attribute element should have higher priority then others.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
863478c5ab
1 измененных файлов с 2 добавлено и 1 удалено
  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 = {
 	const options = {
-		id: mention._id
+		id: mention._id,
+		priority: 20
 	};
 	};
 
 
 	return viewWriter.createAttributeElement( 'span', attributes, options );
 	return viewWriter.createAttributeElement( 'span', attributes, options );