Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ becomes @@ when copying mentioning in wiki editor #59

Closed
Oremountainflorian opened this issue May 16, 2020 · 2 comments · Fixed by #94
Closed

@ becomes @@ when copying mentioning in wiki editor #59

Oremountainflorian opened this issue May 16, 2020 · 2 comments · Fixed by #94

Comments

@Oremountainflorian
Copy link

System

HumHub 1.5.1.
PHP 7.3.17
Wiki 1.3.13

Problem description

When you copy/cut a mentioning ("@..") in the editor (wiki page/comment/...) and paste it turns to an ("@@.."). Once it's saved, it's returns to be an single "@..", in a saved page as well as in edit mode again. The mentioning still works then.

grafik

⬇️ Save

grafik

⬇️ Edit again

grafik

Further observation 1 When it's copied from comment edit mode to wiki page edit mode you can copy it several times without creating redundant "@"s. Doesn't work vice versa

Further observation 2 Works fine when the mentioning is copied from saved comment (stream/wiki) or saved wiki page to arbitrary edit mode, then you can copy it several times without creating redundant "@"s

@luke- luke- transferred this issue from humhub/wiki Jun 16, 2021
@luke-
Copy link
Contributor

luke- commented May 17, 2023

@yuriimaz Can you please try to reproduce?

@luke- luke- changed the title [Minor bug] @ becomes @@ when copying mentioning in wiki editor @ becomes @@ when copying mentioning in wiki editor May 17, 2023
@serh-mosk
Copy link
Contributor

@luke- Yes, I was able to reproduce this and it is a completely logical behavior during such actions with mentions in the richtext editor. I'll try to add a safeguard to correctly paste the copied mention text from the buffer.

@serh-mosk serh-mosk linked a pull request May 25, 2023 that will close this issue
luke- added a commit that referenced this issue May 25, 2023
Fix #59: @ becomes @@ when copying mentioning in wiki editor
@luke- luke- closed this as completed May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants