safeToUnload - Methods - Question Editor API

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

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.