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

Only enable used Bard buttons #77

Merged
merged 5 commits into from
Jan 7, 2025
Merged

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jan 6, 2025

Currently, when you import a Bard field, the importer will automatically enable various Buttons on the Bard field, so you don't see errors like this when viewing imported entries in the Control Panel:

CleanShot 2025-01-06 at 18 15 57

This was fine. It meant you didn't encounter those errors - well, unless your content needed a button that wasn't enabled by default, in which case you'd need to enable the button manually.

However, it always felt a bit janky, especially if your imported content only needed something like bold or italic, but we also enabled images for you.

This pull request improves it, by only enabling the buttons needed for the content you've imported.

Closes #72.

@duncanmcclean duncanmcclean marked this pull request as ready for review January 6, 2025 18:23
@duncanmcclean duncanmcclean marked this pull request as draft January 6, 2025 18:23
duncanmcclean and others added 2 commits January 7, 2025 11:51
The addition of clearing the blueprint directory upon test setup seems to have broken this test.

Slightly re-working it seems to make them pass again.
@duncanmcclean duncanmcclean marked this pull request as ready for review January 7, 2025 11:57
@duncanmcclean duncanmcclean merged commit 4286df4 into main Jan 7, 2025
@duncanmcclean duncanmcclean deleted the only-enable-used-bard-buttons branch January 7, 2025 11:57
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.

Importing Bard content changes active toolbar buttons
1 participant