fix(signatures): place caret above the signature in compose and above-quote replies
Publish Docker Image / prepare (push) Successful in 4s
Publish Docker Image / build (linux/amd64, ubuntu-latest) (push) Failing after 10s
Publish Docker Image / build (linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Publish Docker Image / merge (push) Canceled after 0s
Publish Docker Image / prepare (push) Successful in 4s
Publish Docker Image / build (linux/amd64, ubuntu-latest) (push) Failing after 10s
Publish Docker Image / build (linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Publish Docker Image / merge (push) Canceled after 0s
This commit is contained in:
@@ -760,8 +760,12 @@ export function EmailComposer({
|
|||||||
sigInsertedRef.current = true;
|
sigInsertedRef.current = true;
|
||||||
if (mode === 'compose') {
|
if (mode === 'compose') {
|
||||||
editor.chain().focus('end').insertContent(`<p></p>${sig.body}`).run();
|
editor.chain().focus('end').insertContent(`<p></p>${sig.body}`).run();
|
||||||
|
// Place the caret in the empty paragraph above the signature so the user
|
||||||
|
// starts typing at the top of the new email.
|
||||||
|
editor.chain().focus('start').run();
|
||||||
} else if ((mode === 'reply' || mode === 'replyAll' || mode === 'forward') && signaturePosition === 'above_quote') {
|
} else if ((mode === 'reply' || mode === 'replyAll' || mode === 'forward') && signaturePosition === 'above_quote') {
|
||||||
editor.chain().focus('start').insertContent(sig.body).run();
|
editor.chain().focus('start').insertContent(`<p></p>${sig.body}`).run();
|
||||||
|
editor.chain().focus('start').run();
|
||||||
}
|
}
|
||||||
}, [selectedSignatureId, plainTextMode, mode, signaturePosition, getSignatureById, editorReady]);
|
}, [selectedSignatureId, plainTextMode, mode, signaturePosition, getSignatureById, editorReady]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user