fixed broken editor caused by saving material html
fixed broken editor from material html