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

Fix schema of zitting-text component #449

Merged
merged 2 commits into from
Apr 12, 2023
Merged

Conversation

elpoelma
Copy link
Contributor

This PR adds a few different missing marks to the zitting-text-document-container component. These missing marks were causing errors when opening the meeting intro or outro modals. The toolbar tried to display widgets which used marks which were not included in the schema. Maybe an idea: we could check for the existing of the node_spec/mark_spec a widget uses inside the widget itself, so it disables itself when the mark/node spec is not defined.

Additionally this PR converts the dynamic schema getter of the zitting-text-document-container component to a normal property to prevent duplicate instantiation of the schema object. This also solves https://binnenland.atlassian.net/browse/GN-4206?atlOrigin=eyJpIjoiYjRjYTU2ZDhiMzYzNDgwNDgyY2UxNjMyNjFmOTA5ZDkiLCJwIjoiaiJ9.

@elpoelma elpoelma added the bug Something isn't working label Apr 11, 2023
@elpoelma elpoelma self-assigned this Apr 11, 2023
Copy link
Contributor

@lagartoverde lagartoverde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :)

@elpoelma elpoelma enabled auto-merge April 12, 2023 14:54
@elpoelma elpoelma merged commit 6296ada into master Apr 12, 2023
@elpoelma elpoelma deleted the fix/zitting-text-component branch April 12, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants