Summernote table with great style

Is there a workaround to get more styles - bordered, header, stripped for the bootstrap table that summernote uses?

I saw a form from summernote named MaterialNote has a table that I get after. enter image description here

I understood how table classes can be passed as a summernote parameter:

$('textarea').summernote({
        tableClassName: 'table table-striped '     
    });
+4
source share
1 answer

I assume you need to customize your template.

please open summernote.js document

and search on this code:

    var $table = $('<table>' + trHTML + '</table>');

enter your css class at this point.

var $table = $('<table class='teste'>' + trHTML + '</table>');

and edit the css file:

.teste
{

}

I hope this helps

+2
source

Source: https://habr.com/ru/post/1626290/


All Articles