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

Reply issues #2373

Closed
2 of 4 tasks
jancborchardt opened this issue Dec 17, 2019 · 6 comments · Fixed by #2486
Closed
2 of 4 tasks

Reply issues #2373

jancborchardt opened this issue Dec 17, 2019 · 6 comments · Fixed by #2486
Assignees
Labels
2. developing bug feature:editor All bugs, features and pull requests about the (HTML) editor

Comments

@jancborchardt
Copy link
Member

jancborchardt commented Dec 17, 2019

When you reply to an email, there are some small issues which are quite annoying when summed up:

  • The "To" field is focused, even though the recipient is already filled
  • You are prefilled in the "cc" field and need to manually remove yourself
  • The text body has no space above and you need to insert newlines yourself. Expected would be focus on the first line, and 2 empty lines below until the original message.
  • If you are replying from the unified inbox, the wrong account is selected. This might be related to yourself being prefilled in cc → separated out into Replying from the unified inbox, the wrong account is selected #2428

cc @nextcloud/mail I’d say this is some crucial polishing for 18.

@jancborchardt jancborchardt added bug 1. to develop priority feature:editor All bugs, features and pull requests about the (HTML) editor labels Dec 17, 2019
@StCyr
Copy link
Collaborator

StCyr commented Jan 10, 2020

point "You are prefilled in the "cc" field and need to manually remove yourself" is to be resolved by #2454

@ChristophWurst
Copy link
Member

Yep, could also be a side effect of #2447 as the reply recipient logic depends on the account used.

@StCyr
Copy link
Collaborator

StCyr commented Jan 10, 2020

Regarding the 2 last points ('The "To" field is focused, even though the recipient is already filled' and 'The text body has no space above and you need to insert newlines yourself. Expected would be focus on the first line, and 2 empty lines below until the original message.'),

It's easy to not set the focus on the 'To' field when it's already filled but it's more difficult to set the focus on the body: It seems ckeditor5 doesn't support the startupFocus config parameter anymore :(

See https://ckeditor.com/docs/ckeditor5/latest/api/index.html and https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-startupFocus

@ChristophWurst
Copy link
Member

The "To" field is focused, even though the recipient is already filled

@GretaD you can use ckeditor/ckeditor5#714 (comment) at

onEditorReady(editor) {
const schema = editor.model.schema
schema.on(
'checkChild',
(evt, args) => {
const context = args[0]
if (context.endsWith('blockQuote')) {
// Prevent next listeners from being called.
evt.stop()
// Set the checkChild()'s return value.
evt.return = true
}
},
{
priority: 'highest',
}
)
// Set value as late as possible, so the custom schema listener is used
// for the initial editor model
this.text = this.value
logger.debug(`setting TextEditor contents to <${this.text}>`)
},
with an if only for replies ;)

@GretaD
Copy link
Contributor

GretaD commented Jan 15, 2020

i can and i did :)

@jancborchardt
Copy link
Member Author

Very nice! :) Can we also fix the issue of not having extra empty lines on the top when you reply? 🎈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing bug feature:editor All bugs, features and pull requests about the (HTML) editor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants