We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a3231 commit dc6c455Copy full SHA for dc6c455
lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce5Adapter.js
@@ -674,6 +674,10 @@ define([
674
675
// process tag attributes string
676
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
+
681
decodedDirectiveString = encodeURIComponent(Base64.mageEncode(m[3].replace(/"/g, '"') + m[4]));
682
683
return m[1] + '="' + m[2] + this.makeDirectiveUrl(decodedDirectiveString) + '"';
0 commit comments