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 <danxuliu@gmail.com>
Signed-off-by: Marco <marcoambrosini@icloud.com>
Signed-off-by: Grigorii Shartsev <grigorii.shartsev@nextcloud.com>
db8624b to
8144b9f
Compare
Replacement completion
Checklist
|
Signed-off-by: Grigorii Shartsev <grigorii.shartsev@nextcloud.com>
|
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.
- 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)