ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Text align in Bard

Open Joe2824 opened this issue 4 years ago • 6 comments

It would be beautiful to align text inside bard without any plugin.

Joe2824 avatar Feb 16 '21 12:02 Joe2824

If you've used a plugin for this, please link it.

jasonvarga avatar Mar 01 '21 20:03 jasonvarga

TipTap 2 will have it built in and will be very soon be released, see here : https://github.com/ueberdosis/tiptap/issues/547#issuecomment-780886732 @jasonvarga Is Statamic a sponsor of tiptap and have an access to the closed beta ? Here is the "alpha" align plugin : https://www.npmjs.com/package/@tiptap/extension-text-align

jeremyvienney avatar Mar 02 '21 18:03 jeremyvienney

Even when TipTap 2 is released, I imagine it will be a while before Statamic updates Bard to support it, as it would mean introducing a breaking change and possibly changing the way some things work (I've not looked into TipTap 2 that much yet).

duncanmcclean avatar Mar 02 '21 18:03 duncanmcclean

Indeed Duncan, but it can probably be easier than a big refactor - as they said at least :) https://github.com/ueberdosis/tiptap#faq-should-i-start-to-integrate-tiptap-1-or-wait-for-tiptap-2 Nevertheless you're right it will break for people who created custom plugins for Bard exclusively.

In the meantime, here is a working solution for V1 : https://github.com/ueberdosis/tiptap/pull/544#issuecomment-648065624

jeremyvienney avatar Mar 03 '21 18:03 jeremyvienney

With the upcoming upgrade to TipTap2 this should be fairly simple to implement with the official text align extension (https://tiptap.dev/api/extensions/text-align). Be great to have 1st party text align support in Bard.

jacksleight avatar Jun 01 '22 13:06 jacksleight

This is the PR if anybody wants to follow the status https://github.com/statamic/cms/pull/6043

jonassiewertsen avatar Jun 01 '22 13:06 jonassiewertsen

This one can be closed 👍

jacksleight avatar Apr 18 '24 09:04 jacksleight