Skip to content

Commit 9030e08

Browse files
MAGETWO-57796: [GitHub] Inserted image in product description got broken on front end #6138
1 parent 228ee3a commit 9030e08

File tree

1 file changed

+2
-0
lines changed
  • lib/web/mage/adminhtml/wysiwyg/tiny_mce

1 file changed

+2
-0
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ define([
357357
// escape special chars in directives url to use it in regular expression
358358
var url = this.makeDirectiveUrl('%directive%').replace(/([$^.?*!+:=()\[\]{}|\\])/g, '\\$1');
359359
var reg = new RegExp(url.replace('%directive%', '([a-zA-Z0-9,_-]+)'));
360+
content = decodeURIComponent(content);
361+
360362
return content.gsub(reg, function(match) {
361363
return Base64.mageDecode(match[1]);
362364
}.bind(this));

0 commit comments

Comments
 (0)