简体   繁体   English

无法在 XUL 对话框中生成多行文本框 (Thunderbird 68.5.0)

[英]Can not generate a multiline textbox on XUL dialog (Thunderbird 68.5.0)

I can not understand in my writing Thunderbird addon that a textbox is not generated as multiline against my intension.我在编写 Thunderbird 插件时无法理解,文本框没有按照我的意图生成为多行。

Could you tell me the reason or point out the wrong code?你能告诉我原因或指出错误的代码吗? Or could you tell me any good addons using some dialogs with some multiline textbox elements for TB version 68 or later?或者你能告诉我使用一些对话框和 TB 版本 68 或更高版本的一些多行文本框元素的任何好的插件吗?

enter image description here在此处输入图片说明

The sample code is as follows:示例代码如下:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>

<dialog id="sample" title="multiline textbox"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<textbox multiline="true" rows="3"
         value="This is some text that could wrap onto multiple lines."/>

</dialog>
// Launcher
        window.open(  // or window.openDialog
            "chrome://myaddon/content/sample.xul",
            "sampleDlg",
            "resizable,chrome,modal,titlebar,centerscreen");

Thank you in advance.先感谢您。

<textbox multiline="true"> is removed. <textbox multiline="true">被删除。 Use <html:textarea> instead.使用<html:textarea>代替。

Reference:https://developer.thunderbird.net/add-ons/updating/tb68/changes参考:https ://developer.thunderbird.net/add-ons/updating/tb68/changes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM