TinyMCE does not give me bullet-style icons or menu numbering

I have a page with several text fields that I convert 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> 

Text fields are all input-textarea classes, and the tinymce editor loads jsut fine. Except that for some reason, all the menu buttons are displayed, except for the bullist and the number list. Did I miss something?

+6
source share
1 answer

You need to download the lists plugin to use these buttons on the toolbar:

 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 may interest you:

https://www.tinymce.com/docs/plugins/advlist/

+9
source

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


All Articles