Search code examples
reactjstinymceeditor

React App: Tiny MCE do not highlight code after saving like i does while editing


React App: Tiny MCE do not highlight code after saving like i does while editing

Edit mode enter link description here

enter image description here View Mode enter link description here

enter image description here


Solution

  • The codesample plugin relies on a library called Prism.js. This is outlined here:

    https://www.tiny.cloud/docs/plugins/opensource/codesample/#usingprismjsonyourwebpage

    You will need to implement Prism in your web page to get the same look as you see in TinyMCE.