verbb / vizy

A flexible visual editor for Craft CMS
Other
44 stars 8 forks source link

Text align options not working #63

Closed adrienpicard closed 3 years ago

adrienpicard commented 3 years ago

Description Text align options no longer work in 1.0.5

Steps to reproduce

  1. Update to Vizy 1.0.5
  2. Try changing text alignment

Additional info

Additional context Here is the field configuration:

{ "buttons": ["align-left", "align-right"], "toolbarFixed": true }

Reverting to 1.0.4 fixes the issue.

engram-design commented 3 years ago

Bah - looks like tiptap has gone ahead and removed the default nodes alignment options get applied on.

types | Array | [] | A list of nodes where the text align attribute should be applied to. Usually something like ['heading', 'paragraph'].

This is neat for future configuration, but they've made this a breaking change setting this to [] (none) by default.

Fixed for the next release. To get the fix early, change your verbb/vizy requirement in composer.json to:

"require": {
  "verbb/vizy": "dev-craft-3 as 1.0.5",
  "...": "..."
}

Then run composer update.

adrienpicard commented 3 years ago

Cheers @engram-design, that was quick!

engram-design commented 3 years ago

Fixed in 1.0.6