framework icon indicating copy to clipboard operation
framework copied to clipboard

Editor field render

Open jlambe opened this issue 4 years ago • 0 comments

  • 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.

jlambe avatar Mar 05 '20 13:03 jlambe