Skip to content

lespoupeesrusses/summernote-list-of-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published