You are not logged in.
Pages: 1
Is there a way to insert html to the editor outside of Xinha?
Maybe something like this:
function addToXinha(html){
Xinha.insertHTML(html);
}
<input type="button" onclick="addToXinha("text and whatnot");" />
I tried to work around this by using an external inserting function, like http://alexking.org/blog/2003/06/02/ins … avascript/ , but that doesn't work either, the script cant find the textarea after Xinha takes over.
Thanks in advance for any hints
Offline
Found it!
function addToXinha(html){
xinha_editors.body.insertHTML(html);
}
(body is the id of my editor).
Last edited by Aapo (2008-08-19 02:28:05)
Offline
Pages: 1