check if editor.value has been changed