A Summernote's plugin for adding new Tags. This plugin gives you the possibility to put many tags concatenate.
Proudly develop by Sébastien Duplessy.
Minimum requirements for this bundle:
- Add the script to your page after than Summernote is loaded.
-
Add to your toolbar
addtagson Summernote configuration and add the configuration ofaddtags. -
See below for one example of the configuration of
addtags.
- Example to have the tags for use Prism.
$(function () {
$('.summernote').summernote({
toolbar: [
...
[...,[..."addtags"...]],
...
],
addtags: {
"button": "<i class=\"fa fa-folder-open\" aria-hidden=\"true\"><\/i> Prism",
"tags": [
{
"title": "CSS",
"value": [
{"tag":"pre"},
{"tag":"code","class":"language-css"}
]
},
{
"title":"Javascript",
"value":[
{"tag":"pre"},
{"tag":"code","class":"language-javascript"}
]
}
]
}
}
);
});