Tippy breaks the "headless" idea of tiptap #1307
Replies: 2 comments 3 replies
-
Have you tried using the headless version of Tippy in the bubble menu instead? |
Beta Was this translation helpful? Give feedback.
-
It was not an easy decision but tippy (popper.js) is really good at positioning things. Another goal was to make a bubble menu possible in the plain JS version of tiptap. The bubble menu in v1 was built in a way (using slots) we can’t use for a plain JS implementation. Since tippy comes without styling at all as seen in our demos and you are able to overwrite all tippy options I'm fine with it.
Can you tell me more about that limitation? What was possible in v1 and isn’t possible anymore? |
Beta Was this translation helpful? Give feedback.
-
Hi! I've been developing with
tiptap
intensively in last couple of months and withv2
since it has been made public. I also made some contributions and I got the chance to make myself familiar with the code.When it comes to bubble menu, my opinion is that
v1
implementation was better and it fits into theheadless
theme of thetiptap
better. It had good API to work with, especially themenu
slot prop. It was a simple and barebones implementation that provided a nice wrapper which could easily be positioned.Tippy breaks that "headless" idea because it introduces additional wrappers and reduces DX because developer used to control over the menu and to positioning programatically isn't possible any more.
I know we can make our own bubble menu extensions which won't use tippy, but I wanted to share my opinion with
tiptap
devs.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions