Let’s build a rich text, WYSIWYG-editor that supports rich text, images, links and some nuanced features from word processing apps. We will use SlateJS to build the shell of the editor and then add a toolbar and custom configurations.
https://smashingmagazine.com/2021/05/building-wysiwyg-editor-javascript-slatejs/