Skip to content

Adding mention at start of new paragraph does not work when previous paragraph ends with mention #7

Description

@donnapep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions