save changes for richtext plugin