Skip to content

Commit 16f4653

Browse files
authored
ENGCOM-5508: Add custom added url key to decoded directive string in WYSIWYG editor #23845
2 parents 27d2bab + 895dd5c commit 16f4653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ define([
654654

655655
// process tag attributes string
656656
attributesString = attributesString.gsub(/([a-z0-9\-\_]+)="(.*?)(\{\{.+?\}\})(.*?)"/i, function (m) {
657-
decodedDirectiveString = encodeURIComponent(Base64.mageEncode(m[3].replace(/"/g, '"')));
657+
decodedDirectiveString = encodeURIComponent(Base64.mageEncode(m[3].replace(/"/g, '"') + m[4]));
658658

659-
return m[1] + '="' + m[2] + this.makeDirectiveUrl(decodedDirectiveString) + m[4] + '"';
659+
return m[1] + '="' + m[2] + this.makeDirectiveUrl(decodedDirectiveString) + '"';
660660
}.bind(this));
661661

662662
return '<' + match[1] + attributesString + '>';

0 commit comments

Comments
 (0)