Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-03-13 07:37:27

mikeCES
New member
Registered: 2007-03-13
Posts: 2

Add In Spell Checker

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

#2 2007-03-13 13:17:17

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Add In Spell Checker

1. http://xinha.gogo.co.nz/punbb/viewtopic.php?pid=1537 (link taken from FAQ)
2. xinha_editors.yourEditor.whenDocReady(functionToCall)

Offline

#3 2007-03-14 10:17:56

thesolutioncafe
New member
Registered: 2007-03-14
Posts: 1

Re: Add In Spell Checker

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

#4 2007-03-14 11:49:33

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Add In Spell Checker

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

#5 2007-03-14 12:06:40

mikeCES
New member
Registered: 2007-03-13
Posts: 2

Re: Add In Spell Checker

That's great what would the ID be set as?.

Mike

Offline

#6 2007-03-14 16:16:45

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Add In Spell Checker

"XinhaIFrame_" + id of the textarea

Offline

#7 2007-04-11 18:41:24

Random Bits
Xinha Community Member
Registered: 2005-10-24
Posts: 19

Re: Add In Spell Checker

ray wrote:

"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

#8 2007-04-11 18:53:42

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Add In Spell Checker

You might have to use a version from the svn (or the nightly)

Offline

Board footer

Powered by FluxBB