question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Summernote: "TypeError: element.code is not a function"

See original GitHub issue

Hi, I’ve been getting this error when I enter the Dictionary section in the admin, it used to work fine. I tried meteor reset: nothing. I think I did a update of this package some weeks ago. I also notest the data that was inside the summernote before this error is still showing, but in the admin all I see inside is <p><br></p>, and I can’t save the changes.

This is what I got: orion.dictionary.addDefinition('mainSection', 'home', orion.attribute('summernote', { label: 'Sección principal', optional: true }) );

and then in my template:

{{{ dict 'home.mainSection' }}}

This is the traceback from the browser console:

Exception from Tracker afterFlush function: undefined debug.js:43 TypeError: element.code is not a function at .<anonymous> (http://localhost:3000/packages/orionjs_summernote.js?hash=618f6d7f295fd267fbb13166cb694393c8baaa1a:164:11) at http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:3341:22 at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:3687:12) at fireCallbacks (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:3337:12) at .<anonymous> (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:3430:5) at http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:1783:14 at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:2214:12) at http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:1782:15 at Object.Tracker._runFlush (http://localhost:3000/packages/tracker.js?hash=6f5d0f5486aaa54b0abe636174eeb06dcc2a736b:525:11) at Object.Tracker.flush (http://localhost:3000/packages/tracker.js?hash=6f5d0f5486aaa54b0abe636174eeb06dcc2a736b:469:11) undefined

Packages versions:

summernote:standalone@0.8.1
orionjs:summernote@1.8.0

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tomyocommented, May 19, 2016

I just went back to summernote:standalone@0.6.16, everything works good again. I guess is a problem with the latest (as for today) version of that package.

0reactions
tomyocommented, Jun 7, 2016

Sadly, I can’t recall, but I think it was when saving, displaying or when switching from/to ‘code view’. 😕 PS I will keep that in mind when submitting something again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: summernote is not a function when using local files
For me, I wanted to use summer note with bootstrap4, I copied the below code from the official documentation but it didn't work, ......
Read more >
Uncaught TypeError: $(...).summernote is not a function · Issue ...
I managed to work by matching the versions of summernote and jquery module. I used 0.8.2 and 3.1.1 version respectively and it worked...
Read more >
Uncaught TypeError: $(...).summernote is not a function
summernote is not a function error. This error occurs when you try to call the summernote method on an element without including script...
Read more >
Summernote not working - Laracasts
after following the documentation of summernote how to implement it i am only seeing this ... summernote is not a function(…) ... Uncaught...
Read more >
Plugins - Summernote
This is more commonly the reason some scripts don't function correctly until ... This is a comment ) inline in the code area's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found