Skip to content

A Summernote plugin that adds a button to the toolbar allowing the user to create custom grid columns.

License

Notifications You must be signed in to change notification settings

perevoshchikov/summernote-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

summernote-grid

A Summernote plugin that adds a button to the toolbar allowing the user to create custom grid columns.

See example.

Usage

<script src="https://cdn.jsdelivr.net/gh/perevoshchikov/summernote-grid@1.0.0/summernote-grid.min.js"></script>

<script type="text/javascript">
    $(document).ready(function() {
        $('.summernote').summernote({
            toolbar:[
                ['insert', ['grid']]
            ]
        });
    });
</script>

Full options

$('.summernote').summernote({
    toolbar:[
        ['insert', ['grid']]
    ],
    grid: {
        wrapper: "row",
        columns: [
            "col-md-12",
            "col-md-6",
            "col-md-4",
            "col-md-3",
        ]
    },
    callbacks: {
        onGridInsert: null
    },
    icons: {
        grid: "glyphicon glyphicon-th"
    }
});

i18n

$.extend($.summernote.lang, {
    'en-US': {
        grid: {
            tooltip: "Columns",
            label: "Columns",
        }
    }
});

License

The MIT License (MIT). Please see License File for more information.

About

A Summernote plugin that adds a button to the toolbar allowing the user to create custom grid columns.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published