thunderbird-addon - 将工具栏按钮添加到 Thunderbird 撰写消息窗口

标签 thunderbird-addon

有人有幸将自定义工具栏按钮添加到 Thunderbird 的 Compose 窗口中,或者知道有一个示例插件可以做到这一点吗?我是 Thunderbird 开发的新手,并且没有任何运气获得 https://developer.mozilla.org/en/Custom_Toolbar_Button用于撰写窗口。

最佳答案

乔纳森先生指出的是一个很好的提示,并且该特定扩展确实有一个您正在寻找的示例。

打开您自己的 chrome list 文件,并确保您的代码告诉 Thunderbird 您自己的哪些 xul 文件与它自己的 xul 文件“对齐”。在这些示例中,我们假设您的 xul 文件名为 overlay.xul,并且它包含工具栏中按钮的代码以及您想要在消息撰写窗口中执行的任何操作.

如果您发现您的按钮不会显示在“自定义工具栏”对话框中,这是因为 chrome list 中的 xul 不匹配。

在 chrome.manifest 中确保这一点:

#THIS will use your xul file for the message-composing window
overlay chrome://messenger/content/messengercompose/messengercompose.xul chrome://youraddon/content/overlay.xul

#If you want a button, too, make sure this is in your file, too.
overlay chrome://global/content/customizeToolbar.xul chrome://youraddon/content/overlay.xul

关于thunderbird-addon - 将工具栏按钮添加到 Thunderbird 撰写消息窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11333148/

相关文章:

firefox-addon - Thunderbird 扩展控制台日志记录

thunderbird - 调试 Thunderbird 扩展

c++ - 开源 C++ 项目作为 Thunderbird 的插件

dictionary - 为 Thunderbird 拼写检查添加新语言

rss - 如何通过插件处理 Thunderbird 中的提要文件夹?

javascript - 如何使用雷鸟插件显示电子邮件正文?

javascript - 雷鸟扩展 : Get the mail HTML and Object

javascript - 如何访问正在撰写的电子邮件正文?

javascript - 用于查看消息的 ThunderBird 事件