Refactored ContentEditableAttribute methods.