user2409143
user2409143

Reputation: 25

How create a htmleditor in qooxdoo as desktop

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

Upvotes: 1

Views: 244

Answers (1)

czuendorf
czuendorf

Reputation: 863

You can not add a qooxdoo Object into the HtmlArea.

The first parameter is expected to be a HTML Element:

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

Have a quick look at this demo (especially the JS Code):

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

Upvotes: 1

Related Questions