Custom toolbar with Summernote

前端 未结 2 1840
渐次进展
渐次进展 2020-12-29 03:03

How do I know which functions can be enabled for the toolbar of summernote, and how to do it?

In the API docs all I can find is \"toolbar : Array (optional)\" witho

2条回答
  •  心在旅途
    2020-12-29 03:43

    in settings.js You have basic setting (with all features on):

    toolbar: [
        ['style', ['style']],
        ['font', ['bold', 'italic', 'underline', 'clear']],
        ['fontname', ['fontname']],
        ['color', ['color']],
        ['para', ['ul', 'ol', 'paragraph']],
        ['height', ['height']],
        ['table', ['table']],
        ['insert', ['link', 'picture', 'hr']],
        ['view', ['fullscreen', 'codeview']],
        ['help', ['help']]
      ],
    

    indentation is in 'paragraph'

提交回复
热议问题