Skip to content

Commit dc6c455

Browse files
committed
wysiwyg hyperlink issue
1 parent 57a3231 commit dc6c455

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,10 @@ define([
674674

675675
// process tag attributes string
676676
attributesString = attributesString.gsub(/([a-z0-9\-\_]+)="(.*?)(\{\{.+?\}\})(.*?)"/i, function (m) {
677+
if (/\{\{config path=\"([^\"]+)\"\}\}/i.test(m[3].replace(/"/g, '"'))) {
678+
return m[1] + '="' + m[2] + m[3].replace(/\"/g,'"') + m[4] + '"';
679+
};
680+
677681
decodedDirectiveString = encodeURIComponent(Base64.mageEncode(m[3].replace(/"/g, '"') + m[4]));
678682

679683
return m[1] + '="' + m[2] + this.makeDirectiveUrl(decodedDirectiveString) + '"';

0 commit comments

Comments
 (0)