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.
What's the way to add font and color picker dialogs to add block form?
Thank you.
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:
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>
correction, the font dialog doesn't pop up, it simply shows a 'T'.
I believe it is
$font->output('font', ['fontFamily' => "Arial,Georgia,'Times New Roman'"]);
no, no difference, still shows a 'T'.
Is it documented anywhere what the values can be?
Is it documented anywhere what the values can be?
this doesn't work either:
$font->output('font', array('fontFamily' => "Arial,Georgia,'Times New Roman'"));
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.
The color picker doesn't have such issue BTW.
Has anyone got the font picker working with an Add Block form yet?
I don't think there's a font widget