Announcement

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

#1 2009-08-22 10:18:57

stefant42
New member
Registered: 2009-08-22
Posts: 2

How to append Data at the End of the Body - Newbie Question

Hi all.

First a want to thanks alls Programmers and Community Members of the Xinha Projekt! Nice Work!

The only Problem i have with Xinha is to add content at the end of my Textarea. I want implement an Javascript function who add some content at the end of the body tag in my xinha editor.

To add Data at the current Position i used

    var editor = xinha_editors["htmleditor"];
    editor.insertHTML('some content');

But how can i add content at the end of the body in my Textarea DOMPath?

Please give me a hint.

Regards, Stefan

Offline

#2 2009-08-27 16:11:45

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: How to append Data at the End of the Body - Newbie Question

function append {
   var content = editor.getHTML();
   content = content + ' new content to append';
   editor.setHTML(content);
}

something like that. Untested.

Offline

#3 2009-09-02 03:22:30

stefant42
New member
Registered: 2009-08-22
Posts: 2

Re: How to append Data at the End of the Body - Newbie Question

Thank you very much. I was too blind to solve this Problem.

Thank you

Offline

Board footer

Powered by FluxBB