fixed mode change bug. (if the editor is not wysiwyg mode)