Skip to content

Codesample plugin: consider import from CKE5 markup #160

@indigoxela

Description

@indigoxela

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions