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
I've extended the paragraph extension by adding a custom attribute called size to control the font size of paragraphs.
The default size is set to "large". However, when I press Enter on a paragraph that has a size other than "large", it creates a new paragraph that inherits the size from the previous paragraph instead of using the default "large" size.
Is this a bug or expected behavior? If it's expected behavior, how can I make new paragraphs always use the default size value?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've extended the paragraph extension by adding a custom attribute called
size
to control the font size of paragraphs.The default size is set to "large". However, when I press Enter on a paragraph that has a size other than "large", it creates a new paragraph that inherits the size from the previous paragraph instead of using the default "large" size.
Is this a bug or expected behavior? If it's expected behavior, how can I make new paragraphs always use the default size value?
The TipTap version I use is 3.0.7.
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions