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.
2 parents a9eb7d8 + 1c2abae commit e40df5dCopy full SHA for e40df5d
lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js
@@ -484,13 +484,22 @@ define([
484
* @return {Boolean}
485
*/
486
toggle: function () {
487
+ var content;
488
+
489
if (!tinyMCE4.get(this.getId())) {
490
this.turnOn();
491
492
return true;
493
}
494
495
+ content = this.get(this.getId()) ? this.get(this.getId()).getContent() : this.getTextArea().val();
496
497
this.turnOff();
498
499
+ if (content.match(/{{.+?}}/g)) {
500
+ this.getTextArea().val(content.replace(/"/g, '"'));
501
+ }
502
503
return false;
504
},
505
0 commit comments