Summernote: onChange not fired on button click with Microsoft Edge

Created on 4 Sep 2017  路  3Comments  路  Source: summernote/summernote

Hi,

In Microsoft Edge the onChange event does not seem to be fired when I click on the buttons (bold, italic etc.). It works fine in IE, FF, Chrome.

See here: https://jsfiddle.net/mldxpt/Lr3xdepk/
Changing text to bold or italic does not trigger the onChange event in Edge

browser version and os version and summernote version

Microsoft Edge
Summernote 0.8.7

Bug Needs-help Pull-request-wanted

Most helpful comment

Confirmed misbehavior... sadly. We'll try to understand what's happening with MSEdge. Thanks for reporting, @mldxpt.

All 3 comments

Confirmed misbehavior... sadly. We'll try to understand what's happening with MSEdge. Thanks for reporting, @mldxpt.

For older versions look for the follwoing code in the summernote.js where the editor is initialized
var changeEventName = agent.isMSIE ? 'DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted' : 'input';

and change it to
var changeEventName = (agent.isMSIE || agent.isEdge) ? 'DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted' : 'input';

Fixed by #2583

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JavaTMP picture JavaTMP  路  3Comments

chrismaliszewski picture chrismaliszewski  路  4Comments

hackerwins picture hackerwins  路  3Comments

ghost picture ghost  路  3Comments

sgthangtran picture sgthangtran  路  4Comments