Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add di.xml to fix the notice in the admin #1

Open
mikesteeghs opened this issue Mar 16, 2023 · 1 comment
Open

Add di.xml to fix the notice in the admin #1

mikesteeghs opened this issue Mar 16, 2023 · 1 comment

Comments

@mikesteeghs
Copy link

When using your module, the admin throws the following notice when saving a CMS page or block:

image

This can be fixed by adding the file etc/di.xml in the module and add the following content:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <virtualType name="DefaultWYSIWYGValidator">
        <arguments>
            <argument name="allowedAttributes" xsi:type="array">
                <item name="loading" xsi:type="string">loading</item>
            </argument>
        </arguments>
    </virtualType>
</config>
@collymore
Copy link
Member

Thanks for the feedback @mikesteeghs I did see this message on the test site but thought it was already there in Magento!
I'll update the repo now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants