Using TipTap version 2, how can I tell if a whole paragraph is selected rather than just some of the text within the paragraph?
I’m experimenting with TipTap v2 and am trying to show a BubbleMenu
when the user selects some text. I’d like to mimic the way the Medium editor works, in that when the user selects a whole paragraph the bubble menu shows options for setting/unsetting headers, but if they select just some of the text then the menu shows text style formatting such as bold, italic, etc.