I have a page with multiple textarea's that I am converting to tinymce fields.
<script src='//cdn.tinymce.com/4/tinymce.min.js'></script>
<script>
tinymce.init({
selector: '.input-textarea',
toolbar: 'bold italic | bullist numlist indent outdent',
statusbar: false,
menubar: false,
browser_spellcheck: true,
contextmenu: false
});
</script>
The textareas are all class input-textarea, and the tinymce editor is loading jsut fine. Except, for some reason all the menu buttons are showing except the bullist and the numlist. Am I missing something?
You need to load the lists
plugin to use those toolbar buttons:
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste"
],
toolbar: "bullist numlist"
});
There is also an advlist
plugin with additional features that you may be interested in using:
https://www.tinymce.com/docs/plugins/advlist/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With