How to use js/quill editor to write a rich text editor for switching between source code and text

make a rich text editor with quill editor, but hope to have a button and click to switch between the text and the source code. The effect is as follows:

I don"t know what to do. I"m not very good at data binding. I hope someone will teach me. Thank you.


has this piece been finally implemented? What is the specific idea


you can refer to this article to successfully implement
https://codeshelper.com/a/11.

Menu