File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -168,21 +168,21 @@ define([
168
168
/ ( < s p a n c l a s s = " [ ^ " ] * m a g e n t o - w i d g e t [ ^ " ] * " [ ^ > ] * > ) ? < i m g ( [ ^ > ] + i d = " [ ^ > ] + ) > ( ( [ ^ > ] * ) < \/ s p a n > ) ? / i,
169
169
function ( match ) {
170
170
var attributes = wysiwyg . parseAttributesString ( match [ 2 ] ) ,
171
- widgetCode ;
171
+ widgetCode ,
172
+ result = match [ 0 ] ;
172
173
173
174
if ( attributes . id ) {
174
175
try {
175
176
widgetCode = Base64 . idDecode ( attributes . id ) ;
177
+ if ( widgetCode && widgetCode . indexOf ( '{{widget' ) !== - 1 ) {
178
+ result = widgetCode ;
179
+ }
176
180
} catch ( e ) {
177
181
// Ignore and continue.
178
182
}
179
-
180
- if ( widgetCode && widgetCode . indexOf ( '{{widget' ) !== - 1 ) {
181
- return widgetCode ;
182
- }
183
183
}
184
184
185
- return match [ 0 ] ;
185
+ return result ;
186
186
}
187
187
) ;
188
188
} ,
You can’t perform that action at this time.
0 commit comments