Announcement

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

#1 2008-10-14 10:39:15

jedimb
New member
Registered: 2008-10-13
Posts: 2

Question on XINHA object

Hi!

I just started to work with XINHA and up to now everything went quite good.
But now I've got a question how to access the editors content after it has been edited.

My config says:
  xinha_editors = ['test1'];

You see that my textarea is called "test1".
So I tried to get the content using:

xinha_editors.test1.getHTML();

Unfortunately I get an error message claiming that "test1" is not defined.
So it seems that I have a basic misunderstanding of the XINHA object "xinha_editors".


Could anybody please bring some light into my dark mind? ;-)
How do I have to access the XINHA object?
Thanks in advance!

Offline

#2 2008-10-15 08:12:53

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Question on XINHA object

That should be correct.  Without seeing your code we can't say what might be the problem.


James Sleeman

Offline

#3 2008-10-16 11:25:14

jedimb
New member
Registered: 2008-10-13
Posts: 2

Re: Question on XINHA object

Thanks for confirming this.

Seems that I have got some problems loading the page with the XINHA editor using AJAX.
I have now changed it to load it directly (without AJAX) and it works fine.

Offline

Board footer

Powered by FluxBB