Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: this.dispatchEvent is not a function #116

Open
tobiasschweizer opened this issue Sep 8, 2014 · 2 comments
Open

TypeError: this.dispatchEvent is not a function #116

tobiasschweizer opened this issue Sep 8, 2014 · 2 comments

Comments

@tobiasschweizer
Copy link

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.

@examinedliving
Copy link

Having this issue as well.

@ghost
Copy link

ghost commented Jan 12, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants