-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix mentions rendering in comment editor #35187
Conversation
This is already addressed in #35053, but it was not reviewed yet :-) |
Closing in favor of #35053 |
Pull request was closed
Reopening after discussion with @danxuliu :) |
6c303e4
to
80768c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/backport to stable25 |
/backport to stable24 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
One thing, though. It seems that editing a comment that ends with a mention in Firefox does not work (or, at least, it does not work here :-) ):
- Use Firefox
- Send a new comment which is just a mention (like
@user0
) - Edit that comment
- The cursor does not appear, and typing is not reflected in the comment. On the other hand, if the message was
hello @user0
it is possible to place the cursor at the beginning with the mouse and type there, but not at the end.
But I guess this is not a problem caused by this pull request (well, it is because now there are rendered mentions, but you know what I mean ;-) ).
/backport to stable23 |
NcRichContentEditable needs an index of users to properly display them. This commit adds a caching logic and provides it to NcRichContentEditable. Signed-off-by: Louis Chemineau <[email protected]>
80768c2
to
0f66806
Compare
/backport to stable25 |
/backport to stable24 |
The backport to stable25 failed. Please do this backport manually. |
1 similar comment
The backport to stable25 failed. Please do this backport manually. |
The backport to stable24 failed. Please do this backport manually. |
1 similar comment
The backport to stable24 failed. Please do this backport manually. |
The backport to stable23 failed. Please do this backport manually. |
NcRichContentEditable
needs an index of users to properly display them[0].This commit adds a caching logic and provides it to
NcRichContentEditable
.[0] https://github.com/nextcloud/nextcloud-vue/blob/01dc781d18e2d2a81fed6ad578b90532709b7e1d/src/mixins/richEditor/index.js#L106-L119
Fix #35047