Is there any chance to add the image button to the WYSIWYG editor for the category description?

The button is remove by the ui category_form.xml setting files_browser_window_url = false.


<field name="description" template="ui/form/field" sortOrder="50" formElement="wysiwyg">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="wysiwygConfigData" xsi:type="array">                       
                <item name="files_browser_window_url" xsi:type="boolean">false</item>

Overriding the category_form.xml and setting the value to true doesn't work because the value (if not false) is used for the media url. See Custom Category Attribute - Adding 'insert images' button

I think there could be 2 possible approaches:

  1. Remove setting
    • How to remove a setting from ui_component xml files?
  2. Setting the media url as value
    • How to get the media url in ui_component xml files?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.