Skip to content

Commit 96d9ed6

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ 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];
334334

335335
// process tag attributes string

0 commit comments

Comments
 (0)