You are not logged in.
Pages: 1
If you have a XindaEditor is there a way to find the parentNode of the textarea that was used to instantiate the Xinha instance (Or a way to get the Xinha instance from the parentNode). I'm trying to avoid having to pass both the Xinha instance and the it's container to a javascript function.
Also, given an arbitary JavaScript object is there a foolproof way to find out if it's a Xinha..
Thx
M.
Last edited by mark_d_drake (2007-09-29 11:22:09)
Offline
var xinha_table = xinha_editors.youreditor._htmlArea; // this the Xinha table that lives where the textarea used to be
var container = xinha_table.parentNode;
To check whether a given object is a Xinha you could check for the existence of a characteristic member, e.g.
var isItaXinha = typeof yourobject._htmlArea == 'object';
Offline
Pages: 1