Document editor needs to clear model before setting the values to remove any prev attributes.