When you add a mention on a line, press Enter to move to a new line, and then immediately add another mention on the next line, the first mention is replaced by the new mention you just added.
For example, if I try to add:
@JoeBlow
@Henry
It will be converted to:
@Henry
In _renderMentionIntoEditor, after the placeholder text is inserted into the editor, editor.getContent() will return something like <p>@joeblow</p><p>@h__PLACEHOLDER__</p>. Notice there is no whitespace between the paragraph tags, so the regex ends up replacing the wrong thing.
Thx.
When you add a mention on a line, press Enter to move to a new line, and then immediately add another mention on the next line, the first mention is replaced by the new mention you just added.
For example, if I try to add:
@JoeBlow
@Henry
It will be converted to:
@Henry
In
_renderMentionIntoEditor, after the placeholder text is inserted into the editor,editor.getContent()will return something like<p>@joeblow</p><p>@h__PLACEHOLDER__</p>. Notice there is no whitespace between the paragraph tags, so the regex ends up replacing the wrong thing.Thx.