Skip to content

Summernote Plugin to allow changing editing area match paper sizes

Notifications You must be signed in to change notification settings

DennisSuitters/summernote-paper-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

summernote-paper-size

This Plugin adds a Paper-Size button to the Summernote toolbar that lets you change the editing view size to reflect Paper Sizes in Portrait format.

summernote-paper-size

Installation

1. Include JS

Include the following code after Summernote:

<script src="summernote-print-size.js"></script>
<script src="lang/[language-COUNTRY].js"></script>

2. Supported languages

Supported languages can be found in the lang folder, and should be included after the plugin, then setting the chosen language when initialising Summernote.

3. Summernote options

$('.summernote').summernote({
    toolbar:[
        ['paperSize',['paperSize']], // The Button
        ['style',['style']],
        ['font',['bold','italic','underline','clear']],
        ['fontname',['fontname']],
        ['color',['color']],
        ['para',['ul','ol','paragraph']],
        ['height',['height']],
        ['table',['table']],
        ['insert',['media','link','hr']],
        ['view',['fullscreen','codeview']],
        ['help',['help']]
    ],
    save:{
      lang: 'en-US' // Change to your chosen language
    }
});

4. Check out our other Summernote Plugins via our main Github page.

About

Summernote Plugin to allow changing editing area match paper sizes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published