morat523035
morat523035
Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. You can use the cmd shorthand and func shorthand with tbkeys and tbkeys-lite. Use the cmd shorthand...
You would need to start your devtools investigation with the menupopup element. ``` ``` Similar issue https://github.com/wshanks/tbkeys/issues/155 You can insert html directly. ``` window.GetCurrentEditor().insertHTML(`Mozilla`); ``` Similar issue https://github.com/wshanks/tbkeys/issues/123
Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. You can use the cmd shorthand and func shorthand with tbkeys and tbkeys-lite. Use the cmd shorthand...
The command works for me. Thunderbird 115.2.3 Windows 10 Pro 21H2 32-bit Are you typing the command in the "Compose key bindings" text input field in the addon options? Try...
Try these: ``` window.GetCurrentEditor().document.execCommand('formatBlock', false, 'h1'); ``` ``` window.GetCurrentEditor().document.execCommand('formatBlock', false, 'blockquote'); ``` execCommand formatblock https://developer.mozilla.org/docs/Web/API/Document/execCommand#formatblock Reference https://searchfox.org/comm-esr115/search?q=formatBlock Use the following addon to easily view the source of the currently composed...
@Mist44230 Try this: ``` window.doStyleUICommand('cmd_superscript'); ``` Reference http://searchfox.org/comm-esr115/search?q=superscript The sup tag defines superscript text in HTML. HTML sup tag http://www.w3schools.com/tags/tag_sup.asp
@fermiongithub Try using the undo shortcut to remove the blockquote. The docs page says that blockquote is the exception. execCommand formatblock http://developer.mozilla.org/docs/Web/API/Document/execCommand#formatblock If I execute the following commands one at...
I would say there isn't a simple solution to do that as far as I know.
Remember to include window objects in custom commands. ``` window.ToggleMessageTag(window.MailServices.tags.getKeyForTag('business'), true); ``` Tips http://forums.mozillazine.org/viewtopic.php?p=14872763#p14872763 Are you using tbkey or tbkeys-lite? You cannot run arbitrary javascript with tbkeys-lite. You can use...
Try this: ``` // Thunderbird 102 window.ToggleMessageTag(window.MailServices.tags.getKeyForTag('Important'), true); // Thunderbird 115 window.gTabmail.currentAbout3Pane.mailContextMenu._toggleMessageTag(window.MailServices.tags.getKeyForTag('Important'), true); ``` About new mail front end http://developer.thunderbird.net/thunderbird-development/codebase-overview/mail-front-end http://developer.thunderbird.net/add-ons/updating/tb115/adapt-to-changes-in-thunderbird-103-115