Skip to content
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

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

Open
JarisGV opened this issue Feb 24, 2024 · 0 comments
Open

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

JarisGV opened this issue Feb 24, 2024 · 0 comments

Comments

@JarisGV
Copy link

JarisGV commented Feb 24, 2024

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
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