Currently, I am in the process of creating a mail editor with a div that is contenteditable. My goal is to be able to switch between HTML and Clear Text easily, as well as utilize a Word style editor for decorations, colors, fonts, and sizes.
I AM AVOIDING THE USE OF PLUGINS
The issue I am facing is that the div is inheriting styles from the page, which is not ideal. How can I prevent this from happening?
For example, when using H1 tags, it becomes problematic. One solution is to only style classes instead of specific elements like H1. But is there a better approach to solve this?
Check out the example image below: