How can I get the html from Quill editor with the css included?
Currently I get the html using editor.root.innerHTML
. It works, but when I open the html file in browser the styling isn't there. For example I aligned a paragraph to be in center. The result is a paragraph tag with class ql-align-center
but without the definition of the class itself, so it renders without center alignment in browser.
Is there a method to generate html with the style included?