Cleared intervals and timeouts when the editor is destroyed