framework
framework copied to clipboard
Editor field render
- Themosis Version: 2.0.5
- WordPress Version: 5.3.3
- PHP Version: 7.3
Description
The editor field renders the TinyMCE editor within a metabox context. The editor field React component is rendering fine at instantiation but fails to render if placed under a tab or anything that should perform a new rendering of the component. The component fails to call the TinyMCE editor code in order to display correctly.
Steps to reproduce
Simply define an Editor field within a Metabox with two tabs, then switch between the tabs. The tab containing the editor field will fail to render the editor back. (simply display a textarea with stored html content).
Metabox::make('test', 'page')
->add(new Section('one', 'One', [
Field::editor('text')
]))
->add(new Section('two', 'Two', [
Field::text('author')
]))
->set();
Expected behavior
The TinyMCE editor tools should be displayed.