hansv Posted December 19, 2022 Share Posted December 19, 2022 Hello When using the code-snippet in TinyMCE, the highlighting works in the backend, but not in the frontend. Backend Frontend Working with PW 3.0.208 dev and TinyMCE-module 6.1.2 Many thx in advance Link to comment Share on other sites More sharing options...
wbmnfktr Posted December 19, 2022 Share Posted December 19, 2022 Your frontend doesn't have any styles in regards to present code snippets therefore it's a bit pale. Neither ProcessWire, nor TinyMCE take care of your frontend styling. You could use hightlight.js or other helpers like that. Another option could be looking into the backend code and figure out from where the styles come and use that in the frontend as well. 2 Link to comment Share on other sites More sharing options...
hansv Posted December 19, 2022 Author Share Posted December 19, 2022 Many thx @wbmnfktr. Hightlight.js is working perfectly. Result frontend: 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now