carbon-fields
carbon-fields copied to clipboard
Gutenberg block with rich text field keep expanding.
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
- Create a gutenberg block with a rich text field
- Add the block to the post content
Comments
After further investigation, the issue seems to be related to Oxygen Builder