Summernote - 段落按钮未向 select 组件显示下拉菜单
Summernote - Paragraph button is not showing the dropdown menu to select components
我正在使用 Summernote 富文本编辑器。 "Paragraph" 按钮不提供下拉菜单,所以我无法 select 缩进和取消缩进功能。
我是缺少 cdn 还是有其他问题?
我的代码是:
HTML:
<!-- Text Editor -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote-bs4.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote-bs4.js"></script>
<div class="row">
<div class="row col-lg-12 col-md-12 col-sm-12 col-xs-12">
<label class="control-label control-label-left col-lg-12 col-md-12 col-sm-12 col-xs-12" for="atHome">At Home:</label>
<textarea class="summernote" id="atHome" name="atHome" rows="3"></textarea>
</div>
</div> <!-- Row -->
JS:
$(document).ready(function() {
$('#atHome').summernote({
toolbar: [
// [groupName, [list of button]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']]
]
});
});
$(document).ready(function() {
$('#atHome').summernote({
toolbar: [
// [groupName, [list of button]]
['style', ['style']],
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['fontname', ['fontname']],
['table', ['table']],
['insert', ['link', 'picture', 'video']],
['view', ['fullscreen', 'codeview', 'help']]
]
});
});
检查上面的这个是否对我有用,如果你的代码不起作用,请检查控制台是否有错误。
我正在使用 Summernote 富文本编辑器。 "Paragraph" 按钮不提供下拉菜单,所以我无法 select 缩进和取消缩进功能。
我是缺少 cdn 还是有其他问题?
我的代码是:
HTML:
<!-- Text Editor -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote-bs4.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.10/summernote-bs4.js"></script>
<div class="row">
<div class="row col-lg-12 col-md-12 col-sm-12 col-xs-12">
<label class="control-label control-label-left col-lg-12 col-md-12 col-sm-12 col-xs-12" for="atHome">At Home:</label>
<textarea class="summernote" id="atHome" name="atHome" rows="3"></textarea>
</div>
</div> <!-- Row -->
JS:
$(document).ready(function() {
$('#atHome').summernote({
toolbar: [
// [groupName, [list of button]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']]
]
});
});
$(document).ready(function() {
$('#atHome').summernote({
toolbar: [
// [groupName, [list of button]]
['style', ['style']],
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']],
['fontname', ['fontname']],
['table', ['table']],
['insert', ['link', 'picture', 'video']],
['view', ['fullscreen', 'codeview', 'help']]
]
});
});
检查上面的这个是否对我有用,如果你的代码不起作用,请检查控制台是否有错误。