Inpagelinks plugin for Trumbowyg HTML editor
The plugin creates button
on Trumbowyg panel. The button has dropdown menu with Create and Remove items.
<-- Import Trumbowyg Inpagelinks style in <head>... -->
<link rel="stylesheet" href="inpagelinks/trumbowyg.inpagelinks.min.css">
<-- Import Inpagelinks plugin... -->
<script src="inpagelinks/trumbowyg.inpagelinks.min.js"></script>
Then you can use the new button definition inpageLabels.
Be sure to include link button as well
$('#tbw-editor').trumbowyg({
btns: [
["inpageLabels"],
["link"],
]
});