You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selection array is a list of extensions like [paragraph, codeBlock, h1, h2, h3, ...] selected from the Field > Interface > Tools.
"heading" is not in this list. So it only filter to types: ["paragraph", "codeBlock"] and doesn't include heading.
Possible solution:
add a condition that set "heading" if selection is "h1" or "h2", ...
Describe the bug
When updating the alignment of a h1, h2, h3, h4, h5, h6, alignment can't be changed
To Reproduce
Flexible Editor Version:
1.8.2
Directus Version:
11.1.0
Code Information
Related to this commit: 9947e50
selection array is a list of extensions like [paragraph, codeBlock, h1, h2, h3, ...] selected from the Field > Interface > Tools.
"heading" is not in this list. So it only filter to types: ["paragraph", "codeBlock"] and doesn't include heading.
Possible solution:
add a condition that set "heading" if selection is "h1" or "h2", ...
(with better formatting of course)
TODO: check if tiptap supports "h1" directly as a valid type, or if it only supports heading, because the name is extension-heading:
https://github.com/ueberdosis/tiptap/tree/develop/packages/extension-heading/src
The text was updated successfully, but these errors were encountered: