insertBrOnReturn is specific cmd code for Mozilla, Chrome does not support this. You can check this with:
document.queryCommandSupported('insertBrOnReturn')
jsFiddle is here , it warns "true" in Firefox, but "false" in Chrome.
If you only want to insert br, try:
document.execCommand('insertHTML', false, '<br><br>');
Also check this out: Prevent content from being added and lt; div> on ENTER - Chrome
Andrew
source share