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
kallefrombosnia3mo ago
$wysiwygOptions = [
...
'align',
];
$wysiwygOptions = [
...
'align',
];
toncek
toncekOP3mo 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
kallefrombosnia3mo ago
It doesnt matter, it should work for both editors. You have some other issue probably. Do other options work as expected?
toncek
toncekOP3mo ago
Yes, others work as expected
kallefrombosnia
kallefrombosnia3mo 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 M3mo ago
Instead of just 'align' try using ["align" => []]

Did you find this page helpful?