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 import issue with Bard #65

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Fix import issue with Bard #65

merged 3 commits into from
Dec 19, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue when importing Bard fields where if the provided HTML doesn't wrap text in <p> tags, it would cause the text to be in-editable in the Control Panel.

Due to the lack of <p> tags, ProseMirror was outputting text nodes. However, in order for them to be editable (& formatted properly in Bard), they need to be wrapped in paragraph nodes.

See an example below:

CleanShot 2024-12-19 at 16 22 08

image

This PR also fixes an issue where indexes were being outputted by the Bard transformer, which they shouldn't have been.

Fixes #62.

@duncanmcclean duncanmcclean merged commit 9e512d0 into main Dec 19, 2024
22 checks passed
@duncanmcclean duncanmcclean deleted the fix/bard-import-issues branch December 19, 2024 16:40
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.

Bard Import Issue with HTML Content from CSV
1 participant