Skip to content

Example of @ Mention in ASP.NET MVC Markdown Editor Control

This example shows how to integrate mentions within the Markdown Editor. Type the @ character and select a user from the suggestion list.

The @ mention displays a list of items that users can select or tag from the suggested list. In this demo, the following properties are configured with the popup dimensions:

  • SortOrder – Sorts the suggestion list.
  • ShowAvatar – Shows the first letter of each item in a circle, the avatar, in the suggestion list.
  • InsertTemplate – Sets what is written for the chosen item: here a Markdown link with the person’s e-mail address.
  • PopupWidth and PopupHeight – Set the dimensions of the suggestion list.
  • NoRecordsText – Sets the text shown when nothing matches.