refactor isContentEditable