Skip to content

Commit 84ab701

Browse files
author
Jeroen
authored
Add custom added url key to decoded directive string
1 parent 8e16abc commit 84ab701

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
@@ -645,9 +645,9 @@ define([
645645

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

650-
return m[1] + '="' + m[2] + this.makeDirectiveUrl(decodedDirectiveString) + m[4] + '"';
650+
return m[1] + '="' + m[2] + this.makeDirectiveUrl(decodedDirectiveString) + '"';
651651
}.bind(this));
652652

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

0 commit comments

Comments
 (0)