Skip to content

Commit e4ffd59

Browse files
MAGETWO-58617: [GitHub] WYSIWYG editor loses data after show-hide editor #5811
1 parent 2adb6e2 commit e4ffd59

File tree

1 file changed

+2
-1
lines changed
  • lib/web/mage/adminhtml/wysiwyg/tiny_mce

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,9 @@ define([
329329

330330
encodeDirectives: function(content) {
331331
// collect all HTML tags with attributes that contain directives
332-
return content.gsub(/<([a-z0-9\-\_]+.+?)([a-z0-9\-\_]+=".*?\{\{.+?\}\}.*?".+?)>/i, function(match) {
332+
return content.gsub(/\<([a-z0-9\-\_]+.+?)([a-z0-9\-\_]+=".*?\{\{.+?\}\}.*?".*?)>/i, function(match) {
333333
var attributesString = match[2];
334+
334335
// process tag attributes string
335336
attributesString = attributesString.gsub(/([a-z0-9\-\_]+)="(.*?)(\{\{.+?\}\})(.*?)"/i, function(m) {
336337
return m[1] + '="' + m[2] + this.makeDirectiveUrl(Base64.mageEncode(m[3])) + m[4] + '"';

0 commit comments

Comments
 (0)