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

feat: add hideImageToolbar option to imagePlugin #571

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

jgeppert
Copy link
Contributor

Make it possible to hide the image toolbar, e.g. when editor is in readOnly mode.

When using the editor to just render documents (e.g. in an application where some users only have viewing capabilities), even with hidden toolbar and read only mode, each image will still show the toolbar (settings + delete icon). Other plugins, like the table, hide their toolbar already when in read only mode. This makes it possible to get to the same state with the image plugin, alternatively, it could also make sense to always hide the toolbar when in read only mode.

@petyosi
Copy link
Contributor

petyosi commented Aug 23, 2024

@jgeppert I think that we should just use the readOnly flag for that purpose rather than introducing a new optional one. Seems like a sensible default to me. If you're ok with that, just update the PR, I will merge.

@jgeppert
Copy link
Contributor Author

Sure, makes sense to me, i will update it shortly

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

Successfully merging this pull request may close these issues.

2 participants