Fix adding of rich content so that it respects settings.
Fixed toggling rich content.
- Fixed the display and settings when toggling rich content.

Close #744