Skip to content
Discussion options

You must be logged in to vote

The plugin does support custom triggers like $, but there are a few things that can prevent it from working:

  • Special characters like $ need to be escaped in the configuration because the plugin builds its regex directly from the triggers array. Try using "\\$" as the key in your mentionItems and in your triggers array instead of just "$" (reference).
  • By default, the plugin only triggers mentions if the character is at the start of a line or after whitespace. To allow $ to trigger after any character, set preTriggerChars="[\\s\\S]" in your plugin props (reference).
  • Make sure your mentionItems and triggers props are structured like:
    const mentionItems = {
      "\\$": [
        { value: "AAPL", uid

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MarLapuz
Comment options

@dosubot
Comment options

Answer selected by MarLapuz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant