Jquery 如何在summernote中显示旋转?
我正在尝试显示旋转,而照片是用summernote上传的,但是summernote抛出了一个错误:uncaughtTypeError:无法读取null的属性“bookmark”。 照片保存在我的电脑里,但是summernote没有显示 这是mi代码:Jquery 如何在summernote中显示旋转?,jquery,summernote,Jquery,Summernote,我正在尝试显示旋转,而照片是用summernote上传的,但是summernote抛出了一个错误:uncaughtTypeError:无法读取null的属性“bookmark”。 照片保存在我的电脑里,但是summernote没有显示 这是mi代码: var awaitingPopUp = '<div class="text-right"><img src="${pageContext.request.contextPath}/resources/img/spinner.gi
var awaitingPopUp = '<div class="text-right"><img src="${pageContext.request.contextPath}/resources/img/spinner.gif" width="50px"/></><br /><br />';
var edit = function() {
$('.text').summernote({focus: true,height: 1000,
onImageUpload: function(files, editor, welEditable) {
sendFile(files[0], editor, welEditable);
}
});
};
function sendFile(file, editor, welEditable) {
var processDialog=bootbox.dialog({ message: awaitingPopUp, title: 'Subiendo y guardando las fotos...' });
var data = new FormData();
data.append("file", file);
$.ajax({
data: data,
type: "POST",
url: "${pageContext.request.contextPath}/addImageBlog.html/8",
cache: false,
contentType: false,
processData: false,
success: function(url) {
processDialog.modal('hide');
alert(url);
editor.insertImage(welEditable, url);
},
error: function(data){
alert("failure"+data);
}
});
}
我刚刚解决了这个问题,没有使用引导框或普通模式,有必要使用class note image对话框模式。这个类在summernote-bs3中。css我刚刚解决了这个问题,有必要使用类注释图像对话框模式,而不是使用引导框或普通模式。此类位于summernote-bs3.css的内部。