Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting working in TinyMCE, but not website #3792

Open
Banana828 opened this issue Apr 19, 2024 · 0 comments
Open

Highlighting working in TinyMCE, but not website #3792

Banana828 opened this issue Apr 19, 2024 · 0 comments

Comments

@Banana828
Copy link

Information:

  • Prism version: 1.29
  • Plugins: line hightlight, linenumbers, show language, inline color, toolbar, copy to clipboard button
  • Environment: Browser (Chrome)

I am using two systems: One is a manager that creates texts for the other system. The manager is built with Angular (TypeScript) and I managed to get Prism working in TinyMCE. I downloaded the JS and CSS (for the language C#) from the website and referenced them in my Angular application. The rest is pretty simple.
When I use the code plugin I see I can select C# and it's highlighted nicely in my TinyMCE. I submit the text with the C# code.

I go to the other website, the one for customers. This is a WordPress website and I made a custom plugin to retrieve and show the texts from the manager. I referenced the JS and HTML for prism again. Then I try to view the text with the code highlighting... Nothing.

image

I can see the class language-csharp in the pre element, followed by a code HTML element.

Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant