Making the Livewire Flux Editor component return JSON instead of HTML
Flux uses Tiptap for its Editor component - offering incredible interoperability with Statamic's Bard fieldtype. With one catch: Flux's implementation returns HTML.
Never fear, @joshhanley.au paired with me to help tweak the getter to get JSON instead.
www.martyfriedel.com/blog/making-...
29.10.2025 22:24
π 12
π 1
π¬ 0
π 0
Agreed!
28.10.2025 22:12
π 6
π 0
π¬ 0
π 0
You might be waiting a while, itβs not something we plan to change. Whatβs wrong with tables?
06.09.2025 22:57
π 2
π 0
π¬ 1
π 0
Yep! All in the matter of time π
05.09.2025 21:32
π 0
π 0
π¬ 1
π 0
We've just fixed up how sidebar groups are handled, so make sure to upgrade to v2.3.1!
05.09.2025 04:20
π 4
π 0
π¬ 2
π 0
We just shipped a ton of improvements to Flux's sidebar! π
- Collapsible sidebars
- Collapsed state auto-persisted in localStorage
- Sidebar item group icons
- New `sidebar.search` component
- + like 5 other new sidebar components
Checkout the blog post: fluxui.dev/blog
05.09.2025 04:17
π 12
π 1
π¬ 1
π 0
Love it! π yep itβs a default for all projects for me now π
09.08.2025 03:45
π 2
π 0
π¬ 0
π 0
New Flux release: v2.2.4 with a bunch more fixes! π
09.08.2025 02:07
π 16
π 0
π¬ 2
π 0
And how are you going?
Yep, a good friend will always want to know. There have been times when I've got so much going on in my world, when I call my best friend, I rant for a bit. But then I always ask, so how're you doing? No matter how long into the conversation we may be. But it goes both ways.
07.08.2025 03:28
π 2
π 0
π¬ 1
π 0
Soon β’οΈ
30.07.2025 22:11
π 1
π 0
π¬ 0
π 0
To all of those social butterflies in Denver - enjoy Laracon!
Donβt forget to keep an eye out for someone seeming on the outer, someone needing to feel included, someone needing a smile.
There are lots of invisible developers out there.
Try to do something that can help others feel seen.
28.07.2025 09:48
π 31
π 8
π¬ 0
π 0
Thankfully, while events aren't fun to deal with, they are definitely reliable. I've been using this pattern even since v2 for shared modals.
22.07.2025 03:27
π 0
π 0
π¬ 0
π 0
Yep! Just tested this and yeah it works as I was hoping π
22.07.2025 03:25
π 1
π 0
π¬ 2
π 0
I think I know what you want and it's coming in v4 π€«π (if it works the way I'm hoping it will π)
22.07.2025 03:18
π 1
π 0
π¬ 1
π 0
Yeah the main reason for the dispatch is, what if you click edit on one user, then escape out and then click edit on a different user? The modal comp can't mount twice. You could potentially do that if you had inline modals but that adds to the DOM. I just have one edit-user modal comp for the page.
22.07.2025 03:16
π 1
π 0
π¬ 1
π 0
I'd love to know the answer to this too π
22.07.2025 03:12
π 0
π 0
π¬ 0
π 0
I then have loading inside the modal, which `wire:target` the edit method, to show the loading state and hide the modal contents.
22.07.2025 03:02
π 0
π 0
π¬ 1
π 0
Yep, that's how I do it. I have a button that has `wire:click="$dispatch('edit-user', {{$user->id}})"` and it is wrapped in a `flux:modal.trigger` component, which opens the modal.
My modal component has a listener for the edit-user event on my `edit($userId)` method.
22.07.2025 03:02
π 2
π 0
π¬ 1
π 0
One component for the page and another for the modal π
22.07.2025 02:48
π 0
π 0
π¬ 1
π 0
Ahh! Yep, that'll do it. What do you use that for?
21.07.2025 01:33
π 0
π 0
π¬ 0
π 0
Actually those dates are off by a day in comparison to the date inside the element π€
21.07.2025 01:22
π 0
π 0
π¬ 1
π 0
Yeah Flux uses browser locale based date objects to get the individual dates. But it should only be rendering the day and not the rest of it.
21.07.2025 01:21
π 0
π 0
π¬ 1
π 0
Sadly not. If you canβt work it out, happy to jump on a call to see if we can get to the bottom of it.
21.07.2025 01:14
π 1
π 0
π¬ 2
π 0
Very strange! Just tested locally and I couldnβt get it to break π
thought maybe it was an issue with date picker after flux scripts or something. But it doesnβt function at all then π
21.07.2025 01:04
π 0
π 0
π¬ 1
π 0
Ok thanks. Iβll have a quick play and see if I can replicate it. Does seem odd styles wouldnβt be there initially but be fine after any interaction
21.07.2025 00:26
π 0
π 0
π¬ 1
π 0
Nope! Iβll test it out. Assuming itβs nothing fancy, just date picker inside a fly out modal?
20.07.2025 23:56
π 0
π 0
π¬ 1
π 0
Haha was just keeping them for a little while after I migrated to digital ocean. Probably should clean them up but yeah itβs not worth it π
17.07.2025 08:18
π 0
π 0
π¬ 0
π 0
Yeah same, mines like $1 for some old RDS snapshots π
17.07.2025 07:24
π 0
π 0
π¬ 1
π 0