Skip to content

Can't toggle content editor (tinymce/hugerte) for text content type #904

@smartexcan

Description

@smartexcan

(this issue was reported 2 years ago #788, but nothing was done about it, even though the issue still persists)

The wysiwyg editor in the text content-type edit form has the "Show / Hide Editor" button hidden. This becomes an issue when WYSIWYG config is set to Disabled by default, as the editor will be in 'textarea' mode by default, with no way of switching it. image image

Preconditions (*)

  1. Magento 2.4.x - current (first reported on 2.4.3)
  2. Page builder 1.x.x - current (first reported on 1.7.0)

Steps to reproduce (*)

  1. Set Stores > Configuration > General > Content Management > WYSIWYG Options > Enable WYSIWYG Editor to "Disabled by Default"
  2. Open page with page builder field.
  3. Add text content-type to stage
  4. Open edit form for text content-type

Expected result (*)

Either unhide the "Show / Hide Editor" button, or force the wysiwyg editor to load by default regardless of config settings.

<item name="wysiwygConfigData" xsi:type="array">
<item name="is_pagebuilder_enabled" xsi:type="boolean">false</item>
<item name="toggle_button" xsi:type="boolean">false</item>
</item>

Either the toggle_button param should be removed or set to true,
or an extra hidden param could be added with a value of false (would force the wyswiyg editor to load by default regardless of config value)
image

Actual result (*)

Can't switch into wysiwyg editor as button is hidden. image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions