Skip to content

Commit

Permalink
MAGETWO-33484: [GITHUB] Admin fields that use WYSIWYG don't pass the …
Browse files Browse the repository at this point in the history
…js validation #933
  • Loading branch information
vpaladiychuk committed Jul 17, 2015
1 parent d525084 commit f41a265
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ define([
varienGlobalEvents.fireEvent('tinymceSaveContent', o);
});

ed.onChange.add(function(ed, l) {
var onChange = function(ed, l) {
varienGlobalEvents.fireEvent('tinymceChange', l);
});
};

ed.onChange.add(onChange);
ed.onKeyUp.add(onChange);

ed.onExecCommand.add(function(ed, cmd, ui, val) {
varienGlobalEvents.fireEvent('tinymceExecCommand', cmd);
Expand Down

0 comments on commit f41a265

Please sign in to comment.