Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.03 KB

Summernote List Of Links

Maintainability

NOTE : Requires Bootstrap

This plugin adds a button to let you choose from an external list of links, provided as json.

Options :

  • listUrl: Async-called URL to get the list of files
  • title (optional): Title of the dialog & the button's tooltip.

Usage

$(document).ready(function() {
    $('#summernote').summernote({
        height: 300,
        toolbar: [
            ['style', ['bold', 'italic', 'underline', 'link', 'list-of-links', 'codeview']]
        ],
        listOfLinks: {
          listUrl: 'data.json',
          title: 'List of websites'
        }
    });
});

/data.json

[
  ["http://www.google.fr", "Google"],
  ["http://www.facebook.com", "Facebook"]
]

Credits

Example copied from https://github.com/tylerecouture/summernote-add-text-tags