update the editor, add the uploading validation, insert file event