I am using TinyMCE editor in my React app. Its CSS is working in the Editor but not working on published content.
I am rendering an element like this:
<div
dangerouslySetInnerHTML={{ __html: article.content }}
></div>
TinyMCE React Component:
<TinyMCE
tinymceScriptSrc={
process.env.PUBLIC_URL + "/tinymce/js/tinymce/tinymce.min.js"
}
onEditorChange={log}
init={{
height: 500,
plugins:
"preview importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons",
menubar: false,
toolbar:
"undo redo | bold italic underline strikethrough h2 h3 h4 link codesample align fontselect fontsizeselect formatselect outdent indent preview fullscreen forecolor backcolor removeformat emoticons",
}}
/>
When using the Editor:
and its output like this on target page:
How can i do this? I read its documentation but i couldn't find anything about this. Thanks.

