Announcement

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

#1 2006-10-18 01:53:37

rockstar33
New member
Registered: 2006-08-10
Posts: 9

Parsing Xinha content onload.

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

#2 2006-10-18 04:24:53

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Parsing Xinha content onload.

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

Board footer

Powered by FluxBB