原文链接:https://blog.csdn.net/sayyy/article/details/115564508
样式设置:https://blog.csdn.net/Joe__sir/article/details/96894176
如果要去掉图片、视频等,可以使用以下代码
$('.summernote').summernote({
height : '400px',
lang : 'zh-CN',
toolbar: [
[ 'style', [ 'style' ] ],
[ 'font', [ 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear'] ],
[ 'fontname', [ 'fontname' ] ],
[ 'fontsize', [ 'fontsize' ] ],
[ 'color', [ 'color' ] ],
[ 'para', [ 'ol', 'ul', 'paragraph', 'height' ] ],
[ 'table', [ 'table' ] ],
[ 'insert', [ 'link'] ],
[ 'view', [ 'undo', 'redo', 'fullscreen', 'codeview', 'help' ] ]
]
});