Support Forum » User Profile

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Configuring WYSIWYG Buttons not working #19736
    Rebecca RossiRebecca Rossi
    Participant
    public function mjmc_block_half_video_half_text($meta_boxes) {
    
            $meta_boxes[] = [
                'title'           => 'Half Video/Half Text',
                'id'              => 'half-video-half-text-content',
                'description'     => 'creates a block with 50% Video / 50% Text',
                'type'            => 'block',
                'icon'            => 'awards',
                'category'        => 'howell-blocks',
                //'context'         => 'side',
                'render_callback' => 'mjmc_block_half_video_half_text_render',
                //'enqueue_style'   => get_template_directory_uri() . '/blocks/hero/style.css',
                'supports' => [
                    'align' => ['full'],
                    'anchor' => true,
                    'customClassName' => true,
                ],
        
                // Block fields.
                'fields'          => [
                    [
                        'type' => 'color',
                        'id'   => 'background_color',
                        'name' => 'Background Color',
                        'js_options'    => array(
                            'palettes' => array( '#004B87', '#FFC629', '#F3F3F3','#FF6B00', '#005CAB', '#3DAE2B')
                        ),
                    ],
                    [
                        'type'  => 'text',
                        'id'    => 'video_iframe',
                        'name'  =>  'Iframe Code'
                    ],  
                    [
                        'type' => 'select',
                        'id'   => 'align_video',
                        'name' => 'Align Video',
                        'options'         => array(
                            'left'       => 'Left',
                            'right' => 'Right',
                        ),
                    ],  
                    [
                        'type'  => 'wysiwyg',
                        'id'    => 'content',
                        'name'  =>  'Content',
                        'options' => array(
                            'tinymce'       => array(
                                'toolbar1'      => 'bold,italic',
                                'toolbar2'      => '',
                                'toolbar3'      => '',
                            ),
                        ),
                    ]
                    
                ],
            ];
            return $meta_boxes;
            
        }

    the Tinymce tool bar doesnt change at all on my end. Other editor settings like: 'media_buttons' => FALSE works just fine.

Viewing 1 post (of 1 total)