update the rich editor