Skip to content

A quick way to hide image captions when you don't need them #71

@JarisGV

Description

@JarisGV

1 - Create the code to hide the captions div:
.cdx-simple-image__caption:has(.hidden) { display: none; }

2 - Set inlineToolbar to true in the SimpleImage tool:
image: { class: SimpleImage, inlineToolbar: true, },

3 - Just use the editorjs-style.js tool to apply the 'hidden' class when clicking on the caption.
https://github.com/hata6502/editorjs-style

4 - See it in action:

a-quick-way-to-hide-captions.mp4

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