'Update' method for contenteditable