Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lespoupeesrusses/summernote-list-of-links


https://github.com/lespoupeesrusses/summernote-list-of-links

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Summernote List Of Links

[![Maintainability](https://api.codeclimate.com/v1/badges/7cd29f1577d8c2fb3da1/maintainability)](https://codeclimate.com/github/lespoupeesrusses/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