Skip to content

Commit

Permalink
MAGETWO-57796: [GitHub] Inserted image in product description got bro…
Browse files Browse the repository at this point in the history
…ken on front end magento#6138
  • Loading branch information
shiftedreality committed Oct 12, 2016
1 parent 228ee3a commit 9030e08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ define([
// escape special chars in directives url to use it in regular expression
var url = this.makeDirectiveUrl('%directive%').replace(/([$^.?*!+:=()\[\]{}|\\])/g, '\\$1');
var reg = new RegExp(url.replace('%directive%', '([a-zA-Z0-9,_-]+)'));
content = decodeURIComponent(content);

return content.gsub(reg, function(match) {
return Base64.mageDecode(match[1]);
}.bind(this));
Expand Down

0 comments on commit 9030e08

Please sign in to comment.