formfcw / directus-extension-flexible-editor

A rich text editor (WYSIWYG) with JSON output that allows the integration of M2A relations to make it extremely flexible. A truly rich editor for Directus.
https://www.npmjs.com/package/directus-extension-flexible-editor
GNU General Public License v3.0
141 stars 14 forks source link

Text Align is disabled if Code Block is not activated. #50

Closed madc closed 2 weeks ago

madc commented 2 months ago

Describe the bug image

To Reproduce

Flexible Editor Version: 1.7.0

Directus Version: 10.x - 11.x

formfcw commented 2 months ago

Thanks for reporting.

madc commented 2 weeks ago

https://github.com/formfcw/directus-extension-flexible-editor/blob/0aea3df04f3bd78a5628e99a104509c6e269c7d4/src/interface/tools/text-align/index.ts#L14

Is codeBlock needed here?

formfcw commented 2 weeks ago

Does it fix the bug, if we remove the "codeBlock"?

madc commented 2 weeks ago

Looking at the documentation, I think it doesn't make sense to have it here. And I'd guess, removing it would fix the bug, but I don't have an easy way to test it atm.

formfcw commented 2 weeks ago

Will be fixed with the release of v1.8.2 :rocket: