jquery-notebook icon indicating copy to clipboard operation
jquery-notebook copied to clipboard

TypeError: this.dispatchEvent is not a function

Open tobiasschweizer opened this issue 11 years ago • 2 comments

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.

tobiasschweizer avatar Sep 08 '14 19:09 tobiasschweizer

Having this issue as well.

examinedliving avatar Oct 03 '14 16:10 examinedliving

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);

ghost avatar Jan 12 '15 17:01 ghost