Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

mbarde
Copy link
Contributor

@mbarde mbarde commented Sep 8, 2023

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 .

src/converters/slate.js Outdated Show resolved Hide resolved
Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davisagli davisagli requested a review from ericof September 11, 2023 03:21
@ericof ericof merged commit 00eaea4 into plone:main Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants