Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.99k stars 612 forks source link

Tag classes dont set class to img #1291

Closed solich closed 1 year ago

solich commented 2 years ago

Hi. When configuring Tag classes, everything is ok (no error in the console), but it is not added class for the img tag in the editor. When can there be a problem?

Code configuration:

tagClasses: {
        h2: 'highline2Editor',
        h3: 'highline3Editor',
        img: 'imageEditor',
        p: 'paragraphEditor',
    },

Trumbowyg v2.25.0

Alex-D commented 1 year ago

Seems to be a bug :/

wromthrax commented 1 year ago

It also doesn't work for paragraph (p) elements unless you explicitly press the paragraph button in formatting menu.

Alex-D commented 1 year ago

Duplicates #1227