-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
[serializer-html][list-plugin] Investigate into serializeHtml
error
#2837
Conversation
🦋 Changeset detectedLatest commit: c24e4d8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
serializeHtml
error
Thanks for providing this reproducing test case. Unfortunately, we can't merge this PR until the issue is resolved, since putting a failing test on main will block all other development. I think I've figured out what's causing the issue.
What I don't understand is why @dimaanj Would you be able to see if adding |
Yes, adding it like I did it below helps to avoid errors when there are overriden elements with + const plateContent = React.createElement(PlateContent, null, children);
const plate = React.createElement(
Plate,
{
editor,
initialValue: value,
onChange,
...props,
} as PlateProps,
- children
+ plateContent
); |
Maybe when DefaultElement is used? |
…alizeHtml-error # Conflicts: # packages/serializer-html/src/utils/createElementWithSlate.ts
Done |
…alizeHtml-error
…alizeHtml-error
Summary
Shows an error condition with
serializeHtml
function. It's started to happen from version26.0.1
.Basically, this commit caused an issue: 0b8b325
Currently:
plate/packages/serializer-html/src/utils/createElementWithSlate.ts
Lines 4 to 35 in 9c3fbcd