Bootstrap 4 summernote编辑器不工作错误“;0x800a01b6-JavaScript运行时错误:对象不存在';t支持属性或方法';编辑'&引用;
我的母版页代码Bootstrap 4 summernote编辑器不工作错误“;0x800a01b6-JavaScript运行时错误:对象不存在';t支持属性或方法';编辑'&引用;,bootstrap-4,summernote,Bootstrap 4,Summernote,我的母版页代码 @{ ViewBag.Title = "Contact"; Layout = "~/Views/Shared/Test_LayoutPage1.cshtml"; @视图包。标题 } "https://code.jquery.com/jquery-3.5.1.min.js“crossorigin=”匿名”//script “链接href=”https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist
@{
ViewBag.Title = "Contact";
Layout = "~/Views/Shared/Test_LayoutPage1.cshtml";
@视图包。标题
}
"https://code.jquery.com/jquery-3.5.1.min.js“crossorigin=”匿名”//script
“链接href=”https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css“rel=”样式表”
“脚本src=”https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js”
编辑1//出现错误编辑按钮
节省2
编辑部分。。。。
“script type=“text/javascript”
@{
ViewBag.Title = "Contact";
Layout = "~/Views/Shared/Test_LayoutPage1.cshtml";
$(document).ready(function () {
var edit = function () {
$('#click2edit').summernote({
focus: true,
dialogsInBody: true
});
};
var save = function () {
var markup = $('#click2edit').summernote('code');
$('#click2edit').summernote('destroy');
};
$('.note-image-dialog, .note-link-dialog, .note-video-dialog, .note-help-dialog').on('show.bs.modal', function () {
$(this).detach().appendTo('body');
});
$('.note-image-dialog, .note-link-dialog, .note-video-dialog, .note-help-dialog').on('hide.bs.modal', function () {
$(this).detach().appendTo('.note-dialog');
});
});