1

I'd like to create a window with a HtmlEditor like as:

var be= new qx.ui.form.TextArea("");
be.setWrap(true);

var htm= new qx.bom.htmlarea.HtmlArea(be,"test");
this.add(htm);

I get a error:

TypeError: parent is null
if (parent.firstChild) {

Many Thanks

Mani

4

1 回答 1

1

您不能将 qooxdoo 对象添加到 HtmlArea 中。

第一个参数应该是一个 HTML 元素:

http://demo.qooxdoo.org/current/apiviewer/#qx.bom.htmlarea.HtmlArea

快速浏览一下这个演示(尤其是 JS 代码):

http://demo.qooxdoo.org/current/demobrowser/#bom~HtmlArea.html

于 2013-10-10T13:40:55.520 回答