Skip to content

TF-3740 Fix duplicated signatures when changing the From field with inline image in body#3742

Merged
hoangdat merged 1 commit intomasterfrom
bugfix/tf-3740-duplicated-signatures-when-changing-the-from-field-on-mobile
May 23, 2025
Merged

TF-3740 Fix duplicated signatures when changing the From field with inline image in body#3742
hoangdat merged 1 commit intomasterfrom
bugfix/tf-3740-duplicated-signatures-when-changing-the-from-field-on-mobile

Conversation

@dab246
Copy link
Copy Markdown
Member

@dab246 dab246 commented May 23, 2025

Issue

#3740

Root cause

Because inserting the image and then entering the text accidentally placed the signature tag inside the div tag. Therefore, when removing and inserting the signature, the DOM Selector statement document.querySelector('#editor > .tmail-signature'); did not find any direct child elements of #editor with the class .tmail-signature.

Solution

Use the Selector document.querySelector('#editor .tmail-signature'); to find any children within #editor with the class tmail-signature, regardless of nesting level.

Dependency

Resolved

demo-android.online-video-cutter.com.mp4

@hoangdat
Copy link
Copy Markdown
Member

merged linagora/enough_html_editor#37. please update

…nline image in body

Signed-off-by: dab246 <tdvu@linagora.com>
@dab246 dab246 force-pushed the bugfix/tf-3740-duplicated-signatures-when-changing-the-from-field-on-mobile branch from 607ae49 to 3314379 Compare May 23, 2025 07:00
@dab246
Copy link
Copy Markdown
Member Author

dab246 commented May 23, 2025

merged linagora/enough_html_editor#37. please update

Updated

@hoangdat hoangdat merged commit a40cfb9 into master May 23, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants