https://twill.io logo
devtutorum - What is the way to add bullet poin...
d

devtutorum

05/25/2023, 8:28 AM
What is the way to add bullet points list in Twill Admin? I tried by source code but actually the dots are not rendered from html way.
k

kalle

05/25/2023, 9:12 AM
That works fine for me.

https://cdn.discordapp.com/attachments/1111209188824199169/1111220303243247616/image.png

Normal
<ul><li>item</li></ul>
Which wysiwyg editor do you use?
d

devtutorum

05/25/2023, 9:52 AM
@formField('wysiwyg', [ 'name' => 'text_content', 'label' => 'Text', 'translated' => true, 'maxlength' => 2048, 'editSource' => true, 'note' => 'Text-based content here' ])
Not sure if this is the right thing to describe what we use
Our options in the wysiwyg

https://cdn.discordapp.com/attachments/1111209188824199169/1111230487734796309/image.png

i

ifox

05/25/2023, 11:04 AM
You need to enable the list options in your field toolbar
k

kalle

05/25/2023, 11:29 AM
'toolbarOptions' => [
    ['list' => 'bullet'],
  ],
d

devtutorum

05/25/2023, 11:53 AM
and if i need all the others that existed before, because they dissapeared
https://twillcms.com/docs/form-fields/wysiwyg.html tried to add the list available here but the buttons stop working or there is empty space instead
k

kalle

05/25/2023, 11:54 AM
I use these below mostly:
'toolbarOptions' => [
    ['header' => [2, false]],
    'bold',
    'italic',
    'underline',
    'strike',
    ['script' => 'super'],
    ['script' => 'sub'],
    'link',
    ['list' => 'bullet'],
  ],
i

ifox

05/25/2023, 11:55 AM
'bold',
'italic',
'underline',
'link'
these are the default you had before
d

devtutorum

05/25/2023, 11:56 AM
works fab
thanks