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
kallefrombosnia2mo ago
$wysiwygOptions = [
...
'align',
];
$wysiwygOptions = [
...
'align',
];
toncek
toncekOP2mo 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
kallefrombosnia2mo ago
It doesnt matter, it should work for both editors. You have some other issue probably. Do other options work as expected?
toncek
toncekOP2mo ago
Yes, others work as expected
kallefrombosnia
kallefrombosnia2mo ago
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 M2mo ago
Instead of just 'align' try using ["align" => []]
Want results from more Discord servers?
Add your server