plone / blocks-conversion-tool

A tool to convert HTML (as used in Plone Classic) to Blocks (as used on Volto)
7 stars 5 forks source link

feat: Import relevant slateTable settings for HTML ui-tables #35

Closed mbarde closed 11 months ago

mbarde commented 11 months ago

When migrating a Plone page using DraftJS to Slate (via DraftJS -> HTML -> Slate) we do not want to lose table block settings.

So I propose respecting the table settings by evaluating its classes when converting a HTML to a Slate table. To avoid applying this behavior to "usual" HTML tables (and messing up the default settings for those cases) I propose only to apply this behavior to tables having the classes ui table .