You are not logged in.
Pages: 1
I am new to xhina and I am trying to add an AJAX spell checker to the xinha editor.
I am having trouble getting a handle to the Xinha text area that i would need run the spell checker.
How do I get a handle to the textareas used set-up by Xinha?
How con I find out when the editors have been loaded.
Thanks
Mike
Offline
1. http://xinha.gogo.co.nz/punbb/viewtopic.php?pid=1537 (link taken from FAQ)
2. xinha_editors.yourEditor.whenDocReady(functionToCall)
Offline
What Mike is asking for is the DOM id for the internal IFRAME used by the editor. We are the developers of the Ajax Spell Checker that he's trying to use with Xinha http://www.thesolutioncafe.com/ajax-spell-checker.html
From what we can tell, the internal iframe is not assigned an id but it does have a classname. I suppose it would be possible to iterate the DOM elements and assign an ID to the element... which we could then use to attach to your editor.
Any better ideas? Can we assign an ID at element creation time?
Thanks,
Cliff, The Solution Cafe
Offline
http://xinha.python-hosting.com/ticket/983
Just added the id, is this right for you?
Otherwise the iframe is stored as property _iframe of the Xinha object
var iframe = xinha_editors.yourEditor._iframe;
Offline
That's great what would the ID be set as?.
Mike
Offline
"XinhaIFrame_" + id of the textarea
I also am trying to get at the ID. Doing a getElementByID on the above does not work.
I tried doing a search for the literal text "XinhaIFrame_" in the Xinha source, but I could not find it.
Offline
Pages: 1