• Resolved hhgk

    (@hhgk)


    Hi,

    I’m trying to style only svg images with the “style-svg” class that this plugin inserts. But I get the “style-svg” with every image placed in the editor. Not only for svg files.

    What am I doing wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hey,

    There is a setting to auto insert the class to images when placed in the editor… Which currently applies to any image you place in.
    Simple fix for now is to switch off this auto insert setting under “Settings > SVG Support”.
    Then you just add the class to your SVG files manually.

    The next release should have this sorted so it only applies to files with the SVG extension when placed in the editor.

    Thanks for your support.

    Thread Starter hhgk

    (@hhgk)

    Hi,

    I did it this way. But it’s great to hear that the next version will only place it at svgs.

    Thanks.

    Plugin Author Benbodhi

    (@benbodhi)

    Cheers.
    I was going to release it in September but got caught up with a lot of other things, so the next release is half done. It’s in the dev branch if you’re interested in testing it out.

    Thanks again.

    Plugin Author Benbodhi

    (@benbodhi)

    Hi @hhgk,

    Just a quick heads up to let you know that the latest version (2.3.2) includes changes to the way the class is automatically added when that setting is on. It should only add to SVG files now and leave every other file’s markup intact ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘style-svg class added to all images placed in editor’ is closed to new replies.