Hi Cajus

Cajus Pollmeier schrieb:
> what is the recommended way to modify HtmlArea's insertHyperLink to have 
> the target attribute set to _new?
> 
> I'm currently trying to achieve it by modifying it after the link is 
> inserted:
> 
>   var node = this.__htmlArea.getFocusNode();
>   node["target"] = "_new";
> 
> This doesn't seem to work. Do I have to commit the changes somehow?
Unfortunately this feature is not yet implemented. Feel free to open a 
bug report for this to keep it on the radar.

Maybe your solution will work if you use

--snip--
var node = this.__htmlArea.getFocusNode();
node.setAttribute("target", "_new");
--snip--

Maybe you also need to check that the focusNode is actually a DOM 
element and not a text node.

cheers,
   Alex

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to