If you are looking for a completely framework-agnostic rich text editor, then check CKEditor 5 (
https://ckeditor.com/ckeditor-5/). It comes with it's own UI library which you can swap freely with any other UI thanks a to highly decoupled architecture.