C5-8.3: how to add font and color picker dialogs to add block form?

Permalink
Hello,

What's the way to add font and color picker dialogs to add block form?

Thank you.

linuxoid
 
mnakalay replied on at Permalink Reply
mnakalay
form widgets are explained here:https://documentation.concrete5.org/developers/appendix/form-widget-...

I don't think there's a font widget
linuxoid replied on at Permalink Reply
linuxoid
Looks like there is:
https://documentation.concrete5.org/api/8.0/Concrete/Core/Form/Servi...

But it doesn't work, the add block form doesn't pop up but no errors are logged. I don't know what's wrong. I just try this:
<div class="form-group">
        <?php
        $font = Core::make('helper/form/font');
        $font->output('font', $font);
        ?>
    </div>
linuxoid replied on at Permalink Reply
linuxoid
correction, the font dialog doesn't pop up, it simply shows a 'T'.
mnakalay replied on at Permalink Reply
mnakalay
I believe it is
$font->output('font', ['fontFamily' => "Arial,Georgia,'Times New Roman'"]);
linuxoid replied on at Permalink Reply
linuxoid
no, no difference, still shows a 'T'.

Is it documented anywhere what the values can be?
linuxoid replied on at Permalink Reply
linuxoid
this doesn't work either:
$font->output('font', array('fontFamily' => "Arial,Georgia,'Times New Roman'"));
linuxoid replied on at Permalink Reply
linuxoid
Well, I've just found out the font picker dialog actually works but it gets opened behind the add block form and it's grayed out. How can I bring it to the top of the form?

The color picker doesn't have such issue BTW.
linuxoid replied on at Permalink Reply
linuxoid
Has anyone got the font picker working with an Add Block form yet?