Colorpicker in Flux editor #2025
sanderdewijs
started this conversation in
Showcase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share my working solution for adding a colorpicker button in the Flux Editor component.
In the head I add this code for registering the Color and TextStyle modules needed to add the inline styles for the text color. Note that you can't import TextStyle directly, you have to pull in TextStyleModule and use it from there
And finally the resources/views/flux/editor/color.blade.php
When initializing the editor you can add the color property to the editor like described in the docs.
Beta Was this translation helpful? Give feedback.
All reactions