Bubble Menu with Livewire/AlpineJS #5014
Replies: 3 comments 2 replies
-
+1 on this. For me the bubble menu shows up if I remove |
Beta Was this translation helpful? Give feedback.
-
@amnesca would you be open to sharing your js code for this as well? I see that you're using |
Beta Was this translation helpful? Give feedback.
-
Also, any intel on how to deal with throttling?
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I set up Tiptap using the Laravel Livewire installation and initially couldn't seem to get the Bubble Menu extension working. It didn't throw any errors but the menu would just appear static and not display when selecting text in the editor, as it should. My guess was that Alpine hadn't finished rendering and wasn't connecting to the menu element, so I added a nextTick property to the init directive for the editor reference and it's now working properly (see snippet below). However, as this wasn't in the official Tiptap documentation, I just wanted to confirm that this is indeed the correct method to connect extensions with Livewire/AlpineJS?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions