Skip to content

Fix import issue with Bard - #65

Merged
duncanmcclean merged 3 commits into
mainfrom
fix/bard-import-issues
Dec 19, 2024
Merged

duncanmcclean merged 3 commits into
mainfrom
fix/bard-import-issues

Conversation

@duncanmcclean

Copy link
Copy Markdown
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
@duncanmcclean
duncanmcclean deleted the fix/bard-import-issues branch December 19, 2024 16:40
duncanmcclean added a commit that referenced this pull request Jan 8, 2025
duncanmcclean added a commit that referenced this pull request Jan 8, 2025
Revert "Fix import issue with Bard (#65)"

This reverts commit 9e512d0.
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