react-mentions icon indicating copy to clipboard operation
react-mentions copied to clipboard

feat(tracking): allow mention tracking to be turned off, turning the …

Open djMax opened this issue 2 years ago • 2 comments

…input into more of a macro expander

What did you change (functionally and technically)?

Instead of inserting the markup into the formatted (and unformatted) values, if trackMentions is false, it will just insert the display-formatted value in both, which allows editing of the FULL text in the text area instead of what happens now. Before this change, if you try to edit the text "in" a mention, it will just delete the whole mention. In our use case it is more of a macro-expander, and thus this breaks the expectations a user would have. There are probably more complex solutions available by messing with applyChangeToValue, but I don't feel confident making those changes.

djMax avatar Dec 15 '23 21:12 djMax

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-mentions ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 9:41pm

vercel[bot] avatar Dec 15 '23 21:12 vercel[bot]

🦋 Changeset detected

Latest commit: 7af88d260154f5b94e11156e57019223130781b3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-mentions Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Dec 15 '23 21:12 changeset-bot[bot]