Skip to content

Commit 8836c8e

Browse files
author
Oleksandr Dubovyk
committed
MC-30586: TinyMCE4: some HTML code breaks the editor
- fix max-depth
1 parent 3beadb6 commit 8836c8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,13 @@ define([
174174
if (attributes.id) {
175175
try {
176176
widgetCode = Base64.idDecode(attributes.id);
177-
if (widgetCode && widgetCode.indexOf('{{widget') !== -1) {
178-
result = widgetCode;
179-
}
180177
} catch (e) {
181178
// Ignore and continue.
182179
}
180+
181+
if (widgetCode && widgetCode.indexOf('{{widget') !== -1) {
182+
result = widgetCode;
183+
}
183184
}
184185

185186
return result;

0 commit comments

Comments
 (0)