You are not logged in.
Pages: 1
Hi,
I want to replace Script tags in Xinha with a warning onload and then replace back the original text onsubmit.
my window.onload function has the following:
xinha_init();
replaceScriptTags();
but replaceScriptTags is getting an error that xinha_editors has no properties. It seems that xinha has not fully loaded and the next function is try to access its content. How can I call this function at the right time, just when Xinha has finished loading.
Thanks,
Conor
Offline
This sounds as you should process the text in the textarea before loading xinha.
Otherwise, try including this in xinha_init(), after HTMLArea.startEditors(xinha_editors);
xinha_editors.myTextArea.whenDocReady(function() {any operations that need loaded editor} );
Offline
Pages: 1