Skip to content

WYSIWYG unable to set default value in ui component #10048

Closed
@milansimek

Description

@milansimek

Preconditions

  1. Magento v2.1.6

Steps to reproduce

  1. Create a form uicomponent
  2. Create a wysiwyg editor field
  3. Add a default value

Expected result

  1. The default value should be used when no value is set. This works properly for other fields like textarea's etc.

Actual result

  1. The default value is not used. Editor is empty

How to fix

Edit
magento2/app/code/Magento/Ui/view/base/web/js/form/element/wysiwyg.js

Change value in the defaults object to null. Currently it's ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrontendFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions