I did a lot of research into this topic not so long ago.
I had some experience working with: https://codemirror.net/
I played around with:
I also liked Slate (but it was in beta at the time): GitHub - ianstormtaylor/slate: A completely customizable framework for building rich text editors. (Currently in beta.)
As @AaronSterling mentioned you should have a look at solutions like:
- https://www.froala.com/wysiwyg-editor
- https://www.froala.com/wysiwyg-editor/docs/framework-plugins/angularjs-2-4
And:
- CKEditor 5 | Powerful Framework with Modular Architecture
- GitHub - yabab-dev/ng2-ckeditor: Angular2 CKEditor component
A curated list of awesome WYSIWYG editors: GitHub - JefMari/awesome-wysiwyg-editors: A curated list of awesome WYSIWYG Editors.