[minor] fix to save direct html editing