Fix issue where rich text editors would fail to correctly save content if the editor was in HTML mode.