Announcement

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

#1 2008-04-30 02:08:02

judah
New member
Registered: 2008-04-23
Posts: 6

How do I know when Xinha is done being created?

I need to know when the Xinha editor has been created and available for use in the DOM / Browser. How do I find out when Xinha has been created and is ready to go?

i'm looking for an event that tells me when it has been added to the dom. i want xinha to be available to flex but i can't add it without this event.

fckeditor has a creation complete event:

171 // The FCKeditor_OnComplete function is a special function called everytime an
172 // editor instance is completely loaded and available for API interactions.
173 function FCKeditor_OnComplete( editorInstance ) {
174 var editor = document.getElementById( editorInstance.Name );
175 if (editor) {
176 htmlControls[editor.parentNode.id].loaded = true;
177 var movie = fcGetMovieById(editor.parentNode.movieId);
178 movie.htmlCreationComplete(editor.parentNode.id);
179 }
180 }

I need something like this.

Last edited by judah (2008-05-22 20:42:56)

Offline

#2 2008-05-03 19:26:52

judah
New member
Registered: 2008-04-23
Posts: 6

Re: How do I know when Xinha is done being created?

bump

Offline

#3 2008-05-22 17:55:15

judah
New member
Registered: 2008-04-23
Posts: 6

Re: How do I know when Xinha is done being created?

hey guys anything???

Offline

#4 2008-05-22 20:21:13

judah
New member
Registered: 2008-04-23
Posts: 6

Re: How do I know when Xinha is done being created?

i'm looking for an event that tells me when it has been added to the dom. i want xinha to be available to flex but i can't add it without this event.

fckeditor has a creation complete event:

171 // The FCKeditor_OnComplete function is a special function called everytime an
172 // editor instance is completely loaded and available for API interactions.
173 function FCKeditor_OnComplete( editorInstance ) {
174 var editor = document.getElementById( editorInstance.Name );
175 if (editor) {
176 htmlControls[editor.parentNode.id].loaded = true;
177 var movie = fcGetMovieById(editor.parentNode.movieId);
178 movie.htmlCreationComplete(editor.parentNode.id);
179 }
180 }

Offline

#5 2008-06-07 05:44:28

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

Re: How do I know when Xinha is done being created?

editorInstance.whenDocReady(function)

Would this be what you're looking for?

Offline

#6 2008-07-11 02:42:47

judah
New member
Registered: 2008-04-23
Posts: 6

Re: How do I know when Xinha is done being created?

ray,

dude, thanks. that's what i needed. you rock!

Offline

Board footer

Powered by FluxBB