You are not logged in.
Hello,
Can someone tell me how I can open the editor in a new window and then save / parse the info to the textbox?
Thanks!
Offline
I won't put the code for doing it here, but one way to do it is to create a page with xinha on it, this will be the contents of the popup window. then use
Xinha.prependDomOEvent(Xinha._currentlyActiveEditor._textArea.form, 'submit', function () {
editor = Xinha._currentlyActiveEditor;
top.mytextarea.value = editor.outwardHtml(editor.getHTML());
});
this code should be inside script tags after the include for Xinha, this way when the form submits it will send it back to the parent. you will also want to attach a function to a link or button on the main page so that it opens up the popup window and sets the value of the textarea on that page to the value of the textarea on the mainpage
note: make sure that the textarea in the popup window is inside a form.
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
Has anybody had success doing this? I'm not sure what code to put into the main file that passes the original data to the popup window and I'm not able to get the data from the popup window(xinha editor) back into the main textarea on the main window.
Any help in spelling this out for me would be helpful and much appreciated.
Thanks
Offline