summernote: how to fix : Uncaught TypeError: $(...).summernote is not a function
how to fix : Uncaught TypeError: $(…).summernote is not a function.
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet">
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.js"></script>
<!-- include summernote css/js-->
<link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.css" rel="stylesheet">
<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.js"></script>
<div class="form-group col-sm-12">
<div id="summernote">Hello Summernote
</div> $(document).ready(function() { $('#summernote').summernote(); }); </div>fix basic !
how to fix : Uncaught TypeError: $(…).summernote is not a function.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 6
- Comments: 55 (11 by maintainers)
Commits related to this issue
- bump up jquery version 2.1.4 to 3.2.1. - related with #2087. — committed to summernote/summernote by hackerwins 7 years ago
For me, simply adding “defer” attribute as follows works : )
<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.9/summernote.js" defer></script>My jquery version is 3.3.1
I had the same issue, make sure you load jquery before you load summernote.
jquery 3.4.1 and summernote v0.8.12 do not work together. How is it even possible that it bricks with every single jquery update…
This error can also be caused by blocking mixed content: If your current page uses https://, browser will block files, that are included via http:// (
<link href="http://cdnjs…>
)In order to fix this you can try to change protocol of included files to https, or don’t specify protocol at all:
<link href="//cdnjs…>
@hackerwins I just performed an update from summernote
0.8.2
to0.8.6
. I can say after tries:JQuery 3.2.0
+Summernote 0.8.2
: OKJQuery 3.2.0
+Summernote 0.8.4
: NOJQuery 3.2.0
+Summernote 0.8.5
: NOJQuery 3.2.0
+Summernote 0.8.6
: NOJQuery 3.2.1
+Summernote 0.8.6
: NOJQuery 3.2.1 + Summernote 0.8.6
Just for info,
JQuery 3.2.0
andSummernote 0.8.2
are working together. Why the official recommanded version of JQuery is still2.1.4
(released in 04/2015 !!) ?In my CSS section
In my SCRYPT section
In my form where i need to convert a textarea to summernote
<textarea name="content" id="content" cols="5" rows="5" class="form-control"></textarea>
It was the solution that nailed my own problem thanks
Same issue here even replacing the jquery-1.11.0 to jquery-3…2.1 and I’m using latest summernote version 0.8.8.
@hackerwins just a friendly reminder to update the following line before releasing v0.8.8: https://github.com/summernote/summernote/blob/develop/package.json#L26 or remove it completely.
@hackerwins Maybe - maybe it’s simply stupid - it’s because when I perform a clean
npm
install,JQuery 2.2.4
is still coming with the package?summernote@0.8.2
comes with nothing else than himselfIsn’t there a BS5 for summernote? Have a look at “For Bootstrap 5” of the documentation.
Yeah, what’s going on here?
I’m trying to install this in a Vue app and I’m getting the
$(...).summernote is not a function
error as well.Does Summernote install its own jQuery upon instantiation? If so, why?
Also, what version of jQuery is required to make the damn thing load???
us this:
$(document).ready(function() { $('#summernote').summernote({ placeholder: 'Hello stand alone ui', tabsize: 4, height: 200 }); });
Any update on this? Combination of
summernote@0.8.10
&jquery@3.3.1
does not work. I’m usingangular/cli
.EDIT: I’ve managed to fix this using this solution.
In my case, delete the script’s defer attribute, then everything works. https://stackoverflow.com/questions/37885592/summernote-text-editor-not-working-in-simple-bootstrap-page-where-html-is-genera
v0.8.8 is released. I’ll close now. If you still have problem, please let me know.
@hackerwins Thanks! The issue can be closed I think (still active in 0.8.8 milestone). @guilhermeaiolfi Merged to 0.8.8.
http://summernote.org/getting-started/#include-jscss
Actually issue is that all versions of JQuery and summernote versions are not compatible. So you need to choose compatible versions of both modules and install them only using npm. Hope this will help you 👍