Reproduce code:
new MooEditable(textarea, {
'baseCSS': 'html { height: 100%; cursor: text } body.focus { background: red; } ',
'onEditorFocus': function() {
this.doc.body.addClass('focus');
},
'onEditorBlur': function() {
this.doc.body.removeClass('focus');
}
});
Expected behavior: background color change
Actual behavior: no change in Chrome or IE8
Tested on: Firefox 3.5, Opera 9.6, IE8, Chrome
3
It seems, that focus and blur events are not correctly fired on
those browsers, are not intercepted by MooEditable and are not
re-fired as editor events. Theoretically, bug also applies to
Safari and earlier versions of IE, but I can't confirm.
P.S. Sorry for a duplicate issue on github. I didn't notice this
tracker at first... :)