Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lespoupeesrusses/summernote-list-of-links
https://github.com/lespoupeesrusses/summernote-list-of-links
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lespoupeesrusses/summernote-list-of-links
- Owner: lespoupeesrusses
- License: mit
- Created: 2018-06-26T13:58:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T10:05:13.000Z (over 5 years ago)
- Last Synced: 2024-05-14T21:01:43.748Z (6 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - summernote-list-of-links
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