Skip to content

Commit 0e33f38

Browse files
author
olysenko
committed
Merge remote-tracking branch 'origin/MAGETWO-58617' into bugfixes
2 parents 58027ac + 96d9ed6 commit 0e33f38

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,9 @@ define([
329329

330330
encodeDirectives: function(content) {
331331
// collect all HTML tags with attributes that contain directives
332-
return content.gsub(/<([a-z0-9\-\_]+.+?)([a-z0-9\-\_]+=".*?\{\{.+?\}\}.*?".+?)>/i, function(match) {
332+
return content.gsub(/<([a-z0-9\-\_]+.+?)([a-z0-9\-\_]+=".*?\{\{.+?\}\}.*?".*?)>/i, function(match) {
333333
var attributesString = match[2];
334+
334335
// process tag attributes string
335336
attributesString = attributesString.gsub(/([a-z0-9\-\_]+)="(.*?)(\{\{.+?\}\})(.*?)"/i, function(m) {
336337
return m[1] + '="' + m[2] + this.makeDirectiveUrl(Base64.mageEncode(m[3])) + m[4] + '"';

0 commit comments

Comments
 (0)