Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lqez/summernote-ext-print
Print plugin for summernote
https://github.com/lqez/summernote-ext-print
Last synced: 11 days ago
JSON representation
Print plugin for summernote
- Host: GitHub
- URL: https://github.com/lqez/summernote-ext-print
- Owner: lqez
- License: mit
- Created: 2016-01-06T04:57:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:03:09.000Z (almost 2 years ago)
- Last Synced: 2024-05-14T11:06:30.875Z (6 months ago)
- Language: JavaScript
- Homepage: https://lqez.github.io/summernote-ext-print/
- Size: 3.8 MB
- Stars: 34
- Watchers: 5
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - summernote-ext-print
README
Print plugin for Summernote
===========================This plugin allows summernote prints its document, not whole web page.
DEMO PAGE :
USAGE
-----1. If you're using bower, than just type `bower install summernote-ext-print`
or download and copy summernote-ext-print to your own directory.2. Embed `summernote-ext-print.js` into your page.
3. Configure the toolbar of summernote like below.
```
$('#summernote').summernote({
toolbar: [
...
['misc', ['print']]
],
...
});
```4. (Optional) Summernote does not use [Font Awesome](http://fontawesome.io/) by default. But by adding font awesome files on the page, you can see the printer icon inside the print button.
OPTIONS
-------- `print.stylesheetUrl`
- summernote-ext-print uses(inherit) styles/css of original document by default. But if you want to use different styles for printing, set a url of stylesheet file on this.```
$('#summernote').summernote({
toolbar: [
...
['misc', ['print']]
],
print: {
'stylesheetUrl': 'url_of_stylesheet_for_printing'
}
...
});
```AUTHOR
------
[@lqez](https://github.com/lqez/)LICENSE
-------
MIT