Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

froala unordered list not showing in editor

Tags:

plugins

froala

I'm using Froala for my website CMS. I'm trying to add unordered lists to the editor. I've added the lists plugin like so:

<script src="js/plugins/lists.min.js"></script>

and when I init the editor, I add it to the tool bar buttons

    toolbarButtons: ['fullscreen','undo', 'redo' , '|', 'bold', 'italic', 'underline', 
                     'outdent', 'indent', 'fontSize' , 'lists', 'color',
                     'clearFormatting', 'insertTable', 'insertImage',  
                     'insertFile', 'html'],

but it doesn't show up in the editor. Why?

p.s.: I also tried adding 'insertUnorderedList' instead of 'lists'

like image 532
Shawn Avatar asked Oct 15 '25 16:10

Shawn


1 Answers

I was using an incorrect setting in the toolbarButtons. The correct terms are formatUL and formatOL, not lists.

https://www.froala.com/wysiwyg-editor/docs/options#toolbarButtons

like image 185
Shawn Avatar answered Oct 18 '25 22:10

Shawn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!