Button to create a table of content in summer note. This create a simple table of content with link to H1 and H2.
- Language support
- Option (h1,h2,h3..)
- Delete old ToC
- Add link to
<script src="js/summernote-table-of-content.js"></script>
- Add button 'tableofcontent' :
$('#editor-container').summernote({
toolbar:[
..
['insert',['picture','link','videoAttributes','hr','tableofcontent']],
..
],
})