引用以下文件
<link rel="stylesheet" href="http://www.jq22.com/jquery/bootstrap-3.3.4.css"> <link href="dist/summernote.css" rel="stylesheet"/> <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script> <script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script> <script src="dist/summernote.js"></script> <script src="dist/lang/summernote-zh-CN.js"></script> <!-- 中文-->
html
<div class="summernote"></div>
调用插件
$(function(){ $('.summernote').summernote({ height: 800, tabsize: 2, lang: 'zh-CN' }); })
获取值
alert($('.summernote').summernote('code'));
有没有人试过
Uncaught TypeError: a.modal is not a function at Object.showDialog (summernote.min.js:2) at Object. (summernote.min.js:4) at Function.Deferred (jquery.min.js?time=1578561594439:2) at LinkDialog.showLinkDialog (summernote.min.js:4) at LinkDialog.show (summernote.min.js:4) at Context.invoke (summernote.min.js:2) at HTMLButtonElement. (summernote.min.js:2) at HTMLButtonElement.dispatch (jquery.min.js?time=1578561594439:4) at HTMLButtonElement.r.handle (jquery.min.js?time=1578561594439:4)回复