I am working on a blog using a MEVN stack where I use the tiny-mce-vue editor. Now, all working great except if I add some code sample, they don't retain the syntax highlighting outside of the editor see screenshot:
I have been surfing the web a lot to find an answer, and the best I found was this article where I found that I should use the function Prism.highlightAll()
mounted() {
Prism.highlightAll()
}
but it doesn't do anything running from mounted() inside my post.vue component, but if I run the Prism.highlightAll from the browser console it works as expected.
So In short I don't know what I am doing wrong here.
Here a codepen with my post.vue