Save, revert and clear for pattern edit including server side html sanitize.