Announcement

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

#1 2005-06-14 05:26:43

majid
New member
Registered: 2005-06-13
Posts: 3

getInnerText

Dear Freinds

I'm a new user of Xinha. Actually I have got two problems:

1. I want to get the Raw Text that is written in Xinha to process it, but Only I can get the text with its HTML tags using getHTML() method. I found in its source code that there is getInnerText() method, but I don't know how I can use it. It needs an argument. Could you please help me.

2. Actually, the best tools in the world without a developer guide is not a good tool. Where can I find the Xinha Documentation. I've searched alot but there is nothing. I had to review its source code, but it is not helpful.


I'm looking forward for your helps, because I couldn't continue my project for few days. Thanks in advance.

Majid

Offline

#2 2005-06-14 06:51:33

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: getInnerText

1. getInnerText is only for internal use.
you can use getHTML or getInnerHTML to get the contents of xinha.
...whats the problem with getHTML anyway?

2. xinha doesn't have much documentation sad
this is a part that needs to be improved!
....what would you expect in such a "developer guide"?


Niko

Offline

#3 2005-06-14 10:24:43

majid
New member
Registered: 2005-06-13
Posts: 3

Re: getInnerText

Thank you very much

I explain my problem again...
I want to get the text that user write in Xinha editor..  getHTML() give me the text with HTML tags but I don't need the HTML tags for specific proccess... how I can get rid of HTML tags?

Thanks in advance.
Mjaid

Offline

#4 2005-06-14 22:01:16

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

Re: getInnerText

Errr.  If you don't want HTML, why are you using Xinha?  Xinha is an HTML editor, not a text editor.


James Sleeman

Offline

#5 2005-06-15 05:16:31

Foxx
Xinha Community Member
Registered: 2005-02-20
Posts: 41

Re: getInnerText

are you using a backend? if your using PHP you can easily use the strip_tags() command and get the desired result...

Offline

Board footer

Powered by FluxBB