我在我的网站上使用了Summernote,如预期地运作良好,包括:
$('#summernote').summernote({
height: $(document).height() - ($("#Maintable").height() + $("#TblTop").height() + 60),
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
focus: true,
toolbar: [
// [groupName, [list of button]]
['style', ['fontname', 'bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize', 'undo', 'redo']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['insert', ['picture', 'video', 'table']],
['search', ['findnreplace', 'changecolor']]
],
buttons: {
changecolor: ChangeColorButton
}
});
然而,当我在一个被调用于window.onresize
的函数中调用以下代码以改变高度值时,什么也没发生。我该怎么办?
$('#summernote').summernote({
height: 100
});