Question Editor API Methods
safeToUnload()
Called to determine if the user has made any changes and if it is safe to unload/navigate away from the Questions Editor. It will return true, if content has not been modified after question/feature has been rendered
External code can manually mark the Questions Editor as safe to unload by passing "true" as the first argument to this method.
Arguments
-
isSafe boolean
Mark the editor as safe to unload
Return value
Type boolean