carbon-fields icon indicating copy to clipboard operation
carbon-fields copied to clipboard

Gutenberg block with rich text field keep expanding.

Open rbourassaca opened this issue 4 years ago • 0 comments

Version

  • Carbon Fields: 3.3.2
  • WordPress: 5.9.1
  • PHP: 7.4.1

Expected Behavior

Gutenberg block created with Carbon Fields containing a rich text field (rich_text) should display a block with a fixed height in the Gutenberg editor.

Actual Behavior

The block tinymce iframe height keeps expanding indefinitely in the Gutenberg editor.

Container definition

use Carbon_Fields\Block;
use Carbon_Fields\Field;

Block::make(__('Rich text'))
    ->set_category('echo', 'Echo', 'art')
    ->set_icon('text')
    ->add_fields([
        Field::make('rich_text', 'rich_text', __('Rich text'))
    ])
    ->set_render_callback(function($fields){
        echo wpautop($fields['rich_text']);
    });

Steps to Reproduce the Problem

  1. Create a gutenberg block with a rich text field
  2. Add the block to the post content

Comments

After further investigation, the issue seems to be related to Oxygen Builder

rbourassaca avatar Mar 07 '22 17:03 rbourassaca