-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Cant put id or data attribute on <img> tags in the M2 wysiwyg. #10353
Comments
@iokbomkamp, thank you for your report. |
Should be fixed in #11053 . |
Hi @benathomeofchampions. Thank you for working on this issue.
|
… wysiwyg. Fixes issue whereby an ID attribute is added to an <img> via the WYSIWYG, and a proceeded base64 decode of the ID causes an exception. This introduces a new method Base64.isBase64() and performs a check before trying to get an widget code from the ID.
@magento I am working on it |
Hi @DipaliBhalala! 👋 |
@magento add to contributors team |
Hi @DipaliBhalala! 👋 |
@magento I am working on it |
I've tried this in Magento 2.4, |
Hi @engcom-Delta. Thank you for working on this issue.
|
After adding an id to tags in the wysiwyg, it errors:
Preconditions
Steps to reproduce
<img id="image-id" src="help.jpg" />
or
<img data-id="img-id" src="help.jpg" />
. It will throw an error:Then the code gets weird and weird strings get added to the src:
Expected result
Actual result
After error what code looks like (images won't work like this either):
The text was updated successfully, but these errors were encountered: