Tiptap Align

HI! Can someone tell me how to add align option to my WYSIWYG Tiptap? I am using twill 3.0.
6 Replies
kallefrombosnia
$wysiwygOptions = [
...
'align',
];
$wysiwygOptions = [
...
'align',
];
toncek
toncekOP3w ago
Where? ->toolbarOptions([ ['header' => [2, 3, 4, 5, false] ], 'bold','ordered', 'bullet', 'table','link','italic', 'underline', 'strike', 'blockquote','hr', 'align' ]) this doesn't work. Its tiptap wysiwyg.
kallefrombosnia
It doesnt matter, it should work for both editors. You have some other issue probably. Do other options work as expected?
toncek
toncekOP3w ago
Yes, others work as expected
kallefrombosnia
Weird. Try to remove other and leave align only just to be sure. I would recommend publishing Twill assets again php artisan twill:update and upgrading to the latest Twill version.
Tom M
Tom M3w ago
Instead of just 'align' try using ["align" => []]
Want results from more Discord servers?
Add your server