Hello,
I am attempting to switch the editor mode to WYSIWYG (design) by using SwitchEditMode(), and then fire GetData() after it.
The trouble I'm getting is that the oEditor object scope for GetData() is undefined.
I have attempted to put the oEditor.GetData() in a setTimeout in hopes that time was needed to allow the SwitchEditMode to complete, but it still doesn't work.
Would any of you have any reasoning behind this or a solution?
I'm thinking that maybe something is not being reset in SwitchEditMode function that allow the object to be readable when in WYSIWYG mode again.
Thanks for any assistance!
I am attempting to switch the editor mode to WYSIWYG (design) by using SwitchEditMode(), and then fire GetData() after it.
The trouble I'm getting is that the oEditor object scope for GetData() is undefined.
I have attempted to put the oEditor.GetData() in a setTimeout in hopes that time was needed to allow the SwitchEditMode to complete, but it still doesn't work.
Would any of you have any reasoning behind this or a solution?
I'm thinking that maybe something is not being reset in SwitchEditMode function that allow the object to be readable when in WYSIWYG mode again.
Thanks for any assistance!