Hello,
I'm looking at using the OnAfterSetHTML to wait for the content to be fully loaded before getting the content data using getData().
Would any of you have an example of OnAfterSetHTML that I can observe?
Thanks very much.
I'm looking at using the OnAfterSetHTML to wait for the content to be fully loaded before getting the content data using getData().
Would any of you have an example of OnAfterSetHTML that I can observe?
Thanks very much.

Re: Anyone have an example for OnAfterSetHTML?
function FCKeditor_OnComplete(editorInstance) { editorInstance.Events.AttachEvent('OnAfterSetHTML', function (editorInstance) { alert(editorInstance.getData()); } }function FCKeditor_OnComplete(editorInstance) { alert(editorInstance.getData()); }http://docs.fckeditor.net/FCKeditor_2.x ... API#Events
Re: Anyone have an example for OnAfterSetHTML?
I apologize, but I was too vague in my question.
I'm was attempting to get it to work when-after switching the edit mode either way.
I wrote a class that seemed to work, except after this case.
function onAfterSetHTML(id) { // I am a class for whenafter the fckEditor content is loaded completely. // I manage the global variable 'isHTMLloaded', which allows functions to get the state of the rendering content. // PROPERTIES ARE: // attachEvent - Attach OnAfterSetHTML event. // setHTMLloaded - Set the content load status. Mark as false when loading, and true when loading is complete. // waitForHTMLload - Wait for the htmlLoaded status variable to call back as true before continuing the processing. function attachEvent(id) { var editor = getEditorInstance(id); if (editor == null) { status = null; } else { editor.Events.AttachEvent('OnAfterSetHTML', setLoad(true)); } } function setLoad(status) { // I fire after HTML has been loaded completely. if (status) { isLoaded = true; } else { isLoaded = false; } } function getLoad() { // I get the current editor content loading status. var status = false; if (isLoaded) { status = isLoaded; } return status; } function waitForLoad() { // I wait for the HTML to be loaded completely before continuing the firing order or until the counter limit is reached. var x = 0; do { x++; } while (x < 100 || isLoaded == false); } var isLoaded = false; this.attachEvent = attachEvent; this.setLoadStatus = setLoad; this.waitForLoad = waitForLoad; this.getLoadStatus = getLoad; return status; }Thanks, again.
Ryan