Skip to content

Codesample plugin: consider import from CKE5 markup #160

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

Open
indigoxela opened this issue Feb 16, 2025 · 0 comments
Open

Codesample plugin: consider import from CKE5 markup #160

indigoxela opened this issue Feb 16, 2025 · 0 comments

Comments

@indigoxela
Copy link
Member

Moved here from https://github.com/backdrop-contrib/tinymce_codehighlight/issues

As usual, the editors do their own thing. Very close, but not compatible. 😜

CKEditor 5 code block plugin:

<pre><code class="language-XXXX">...

TinyMCE codesample plugin:

<pre class="language-XXXX><code>...

It would be possible (in theory, didn't try) to add some import (eventually export) magic to make toggling between these two editors easier, but is it worth it? It's some effort (editor.parser / editor.serializer...) and might be unnecessary...

Prism.js can handle both variants, BTW.

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