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

Add text align support to Bard #6450

Merged
merged 3 commits into from
Aug 9, 2022

Conversation

jacksleight
Copy link
Contributor

@jacksleight jacksleight commented Aug 5, 2022

This PR adds text align support to Bard by implementing the official Tiptap 2 TextAlign extension:

https://tiptap.dev/api/extensions/text-align

I think just enabling it for heading and paragraph works for everything you'd want it too, as Tiptap adds paragraphs inside list items and table cells.

When enabled this extension does add a default textAlign attribute to the nodes in the data, which is why I've had to tweak the tests. However when this is set to left the rendered HTML remains unchanged.

This PR is for Bard 2 / TipTap 2 and targets the master branch.

Closes statamic/ideas#470

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.

3 participants