简体   繁体   中英

Issue with content generation in outlook email reply

I am facing an issue with email generated from our application.

In the received email, I do the following

  • Ctrl-R (reply)
  • Ctrl-A (select-all)
  • delete

And I expect to then see an empty outlook email with the correct To: and Subject: lines. The problem is that these actions now lead to an empty box in my email rather than an empty email.

When I debugged the issue, found out that this is because of the following

  • Border is given to a div which is hidden.
  • In reply mode, this div becomes visible.
  • When I do select all and then delete, the box (which is due to border to div), doesn't go

Figured that when I change div to span, this problem won't occur. But it is leading to lot of other problems.

Can somebody suggest a solution here. Basically, what I want to achieve is: Delete all the hidden elements that are not disappearing when I select all and delete

Not exactly sure what you are trying to achieve. Do you want to delete all the hidden elements that are not disappearing when you select all and delete?

You could try clicking the "Format text" tab, then change from "As HTML" to "As Plain Text" before you choose "Select All".

The problem was caused by a div at the end. Fixed the issue by adding a line break after that div

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM