jquery-notebook
jquery-notebook copied to clipboard
TypeError: this.dispatchEvent is not a function
When I try to create a link (http://raphaelcruzeiro.github.io/jquery-notebook/), I get the following error after hitting the return key:
this.dispatchEvent(changeEvent);
TypeError: this.dispatchEvent is not a function on line 755 in file
http://raphaelcruzeiro.github.io/jquery-notebook/src/js/jquery.notebook.js
I am using Firefox 32 on Ubuntu.
Error occurs also in Chrome:
Uncaught TypeError: undefined is not a function
I guess, this is evaluated differently in the two browsers.
Having this issue as well.
Seems that scope need to be passed when 'createLink' and 'removeLink' functions called via showLinkInput callbacks:
390 events.commands.createLink(e, selection); -> events.commands.createLink.call(editor, e, selection);
393 events.commands.removeLink(e, selection); -> events.commands.removeLink.call(editor, e, selection);