Ask for confirm before tab close or page refresh when editor is opened.