We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f27000 commit 5635217Copy full SHA for 5635217
lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js
@@ -171,9 +171,13 @@ define([
171
widgetCode;
172
173
if (attributes.id) {
174
- widgetCode = Base64.idDecode(attributes.id);
+ try {
175
+ widgetCode = Base64.idDecode(attributes.id);
176
+ } catch (e) {
177
+ // Ignore and continue.
178
+ }
179
- if (widgetCode.indexOf('{{widget') !== -1) {
180
+ if (widgetCode && widgetCode.indexOf('{{widget') !== -1) {
181
return widgetCode;
182
}
183
0 commit comments