-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Bug with TextAlign not inheriting defaultOptions of types #1430
Comments
Can you create a reproducable demo please because text align is working fine here: https://www.tiptap.dev/api/extensions/text-align/#textalign |
In this example, heading can adjust the alignment normally, but paragraph can't |
@philippkuehn Tests fail too. ✌️ |
@sh-winter @hanspagel oh no. but this bug was introduced by this fix yesterday ddb9a4b |
There are no default types for TextAlign extension anymore. You have to configure them by yourself. Usually something like: TextAlign.configure({
types: ['heading', 'paragraph'],
}) |
I'm not sure why this an issue but text alignment has never worked for us in v2, I finally did some messing with the extension and got it to work by specifying the types:
I saw these were already in the defaultOptions so I don't know why this fixes our issue, are the options somehow dynamically decided?
The text was updated successfully, but these errors were encountered: