Nathan G
Nathan G

Reputation: 1781

Thunderbird Add-On: Compose Message - Create a sidebar for the add-on?

Is there a way to create a sidebar for the add-on? I saw how to add a panel at the bottom of the email using vbox (but I guess that's not the way to do it in the new architecture of Thunderbird add-ons). I want to add a sidebar panel on the right side. Changing to hbox does not work. Is this possible? This is in order to create an add-on that looks over the text of the email you compose and give insights in a sidebar.

Upvotes: 1

Views: 509

Answers (1)

Qeole
Qeole

Reputation: 9184

Not 100% sure (I have not tried), but for the newest versions of Thunderbird that only run Webextensions (78+), I believe you should look at the composeScripts API (see documentation). It should allow you to inject CSS stylesheets and JS scripts into the composing window. From there you should be able to edit the DOM, add your sidebar (basically a DIV floating to the right of the page I suppose) and the relevant actions.

Upvotes: 0

Related Questions