我想在VueJS中使用Summernote编辑器,使用的框架是Laravel。在blade.php文档中,我设置了一个名为summernot_div的id:
<input type="text" v-model="articleForChange.article_body" class="form-control" id="summernote_div" placeholder="Article Content">
然后,在相应的vueJS文档中,在created()方法内:
$('#summernote_div').summernote({
height: 300, // set editor height
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
focus: true // set focus to editable area after initializing summernote
});
console.log(summernote);
但这个页面只是返回了响应:
未捕获的类型错误:$(...).summernote不是一个函数。
我有什么遗漏的吗?