xul

Firefox Addon SDK onMouseover Event for a Button

為{幸葍}努か 提交于 2019-11-26 23:43:23
问题 With the coming of multi-process Firefox, I have decided to revamp my addon. It is a toolbar addon that was built on XUL. Now I want to build it using the Addon SDK. The old XUL overlay allowed for onMouseOver events for buttons. But the new addon SDK only has the one listener for click . How can I get an onMouseOver (Hover) event for a toolbar button? Maybe there is some way to add css (:hover) to the button element? I found this, and am working on getting it in order, but maybe there's a

Firefox WebExtension settings page

守給你的承諾、 提交于 2019-11-26 21:40:09
问题 I have a settings page on my WebExtension, but I dont know how to acces the values of the settings with javascript. Current .xul-File: <?xml version="1.0"?> <!DOCTYPE mydialog SYSTEM "chrome://myaddon/locale/mydialog.dtd"> <vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <setting type="string" pref="extensions.check.email" title="email" desc="please insert your email here" /> </vbox> How do I acces the "email" value? Can I just write something like "getPreferences(

How can I force a long string without any blank to be wrapped?

只愿长相守 提交于 2019-11-26 15:43:26
I have a long string (a DNA sequence). It does not contain any whitespace character. For example: ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA What would be the CSS selector to force this text to be wrapped in a html:textarea or in a xul:textbox ? heeen for block elements: <textarea style="width:100px; word-wrap:break-word;"> ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTC </textarea> for inline elements: <span style="width:100px; word-wrap:break-word; display:inline-block;">

How can I force a long string without any blank to be wrapped?

混江龙づ霸主 提交于 2019-11-26 04:34:45
问题 I have a long string (a DNA sequence). It does not contain any whitespace character. For example: ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA What would be the CSS selector to force this text to be wrapped in a html:textarea or in a xul:textbox ? 回答1: for block elements: <textarea style="width:100px; word-wrap:break-word;"> ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTC </textarea> for inline elements: <span