This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Wannan tattunawa ta zama daɗaɗɗiya. Yi sabuwar tambaya idan ka na bukatar taimako.

Thunderbird Extensions. How do I set message composer body?

  • 1 amsa
  • 1 yana da wannan matsala
  • 7 views
  • Amsa ta ƙarshe daga Matt

more options

I am currently developing an extension which needs to encrypt the body of the email you are writing. I already did the encryption part, but now I need to display a html in the message composer window. I already know how to extract the text with:

var msgComposer = window.gMsgCompose; var editor = msgComposer.editor; var text = editor.outputToString('text/plain', editor.eNone);

I haven't found a way to set the mail body however...

I am currently developing an extension which needs to encrypt the body of the email you are writing. I already did the encryption part, but now I need to display a html in the message composer window. I already know how to extract the text with: var msgComposer = window.gMsgCompose; var editor = msgComposer.editor; var text = editor.outputToString('text/plain', editor.eNone); I haven't found a way to set the mail body however...

All Replies (1)

more options

I suggest you ask for add-on development help in the appropriate forum. This is just a general user support location. Do developers here to help you.

Try here https://discourse.mozilla.org/c/thunderbird/addons