Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNo space after programmatically inserted mention #543
Labels
Comments
I'm trying to prevent the extra space being created. Do you know where in the code it's being added? Nvm. Found it in #351 |
At the moment this is defined in the mention node. https://github.com/scrumpy/tiptap/blob/master/packages/tiptap-extensions/src/nodes/Mention.js#L62 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When adding a mention through the
@
matcher, an extra space is added after the mention<span>
so that the cursor is located after. When adding a mention programmatically, a<br>
element follows the mentionspan
and is replaced with content when some is entered.Steps to Reproduce / Codesandbox Example
Steps to reproduce the behavior:
Expected behavior
Same behaviour by triggering the
@
matcher and adding a mention programmatically.Environment