Announcement

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

#1 2011-03-18 09:13:38

Felge
New member
Registered: 2011-03-18
Posts: 3

How can i get the HTML-Source-Text from a Text-Area with javascript

Hello Together,

excuse me for my horror english.

Now i try to use XINHA. And it seems that is a very fast and beautiful. At yet i have work with the FckEditor.

My question is: How can i get the Data from the Xinha-Editor. The HTML-Source Code.

With the FCK-Editor it runs:

function sendFieldData(){
        var eventType = document.getElementById("ID_Type").value;
        var eventData = CKEDITOR.instances.ID_Data.getData();

Is it possible with Xinha ?

Thank you Thank you.

Felge

Offline

#2 2011-03-18 13:46:17

ejucovy
Xinha Community Member
From: NY
Registered: 2010-11-15
Posts: 35
Website

Re: How can i get the HTML-Source-Text from a Text-Area with javascript

Xinha.getEditor("textAreaId").getHTML()

replace "textAreaId" with the ID attribute of the textarea that you're putting Xinha on.

Offline

Board footer

Powered by FluxBB