-
Notifications
You must be signed in to change notification settings - Fork 509
Replace custom component with new RichContenteditable #4333
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
Replace custom component with new RichContenteditable #4333
Conversation
|
for new lines, see 1adf641 |
|
That commit should go into the lib directly, so behaviour is consistent across all points of nextcloud |
|
I will close the PR for now (as there was no active development since 6 months). Anyone can pick it up whenever they want and reopen the PR. |
af0c0fa to
20fd12b
Compare
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Signed-off-by: Marco <[email protected]>
Signed-off-by: Grigorii Shartsev <[email protected]>
db8624b to
8144b9f
Compare
Replacement completion
Checklist
|
Signed-off-by: Grigorii Shartsev <[email protected]>
|
Emoji Picker has a problem: it is supposed to replace the selection in the input, but the selection is lost after the emoji picker opens. So an emoji is always added to the end. Also, it checks But all those problems are not caused by this PR. spreed/src/components/NewMessageForm/NewMessageForm.vue Lines 700 to 736 in 8144b9f
|
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.
- The focus should return on the input after adding an emoji via emoji picker
Other than that I'd say that even with the caveats @ShGKme mentions, this is an awesome improvement and we should finally get it in.
It doesn't work on both |
|
Ref: #4265 |
In that case it does not block getting this in. |
|
So, who hits the green button? |
|
The backport to stable25 failed. Please do this backport manually. |
|
We are not backporting this one |
I guess the backport bot was triggered by an old message after the merge... |













Requires nextcloud-libraries/nextcloud-vue#1433
The RichContenteditable component provides its own template for candidate mentions, so the Mention component is no longer used in the input field. However, it is still used when rendering messages, so it can not be removed. It would be good to avoid having duplicate logic (for example, to select the icon for a guest mention).
Pending:
isCompositingevent attribute to prevent sending message when using input methods: Prevent submitting the message when the user is composing #5939 (ideal is to streamline this in the vue lib directly)