Can I change WYSIWYG editor behaviour to use classes instead of style attributes for text align?

There is no way I would ever allow editors to use "style" tag in their HTML content… (Btw. "align" button in quill is not working at all)
5 Replies
ifox
ifox5mo ago
We are using tiptap and quill and not controlling the way they generate html for the text align feature, so you'll probably need a custom vue component to adjust your wysiwyg preferences
Adam Mateusz Brożyński
ok,thanks. But what about quill broken "align" button? I think it's not a problem with quill itself but will it's config provided by Twill.
ifox
ifox5mo ago
Seems like a docs issue, because of the transition to tiptap as the default in twill 3. See how align is defined for quill in the twill 2 docs: https://twillcms.com/docs/2.x/form-fields/wysiwyg.html
Twill
WYSIWYG – Twill
Twill — An open source CMS toolkit for Laravel
Adam Mateusz Brożyński
Ok, so it's an array in quill… I'll test it. And what was the main reason to switch to tiptap as default?
ifox
ifox5mo ago
Tiptap is easier to work with and better maintained. It also has good table support. We also added features like Twill's browser in Tiptap link feature.
Want results from more Discord servers?
Add your server