-
Notifications
You must be signed in to change notification settings - Fork 12
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
Block editor save results in validation error after changing attributes #6
Comments
Also notice the embed-pdf-viewer/blocks/index.js Line 28 in 0177138
|
I think this is related. WordPress/gutenberg#10444 |
The console log in Firefox is showing the Block validation error as expecting to see the default height/width but actually seeing the changed height/width. |
I did a bunch more digging, at least as much as I could. It seems that in the The issue seems to be in The When I hope some of this makes sense. |
Also, no saved/changed data, except the alignment, survives a page reload. |
Happy to take a look in the course of the week, aligning the generated HTML with the loading can be tricky. Thanks for the details, that helps me understand what you've already tried. |
Also it seems adding a PDF via URL doesn’t save. |
Perhaps this change. I haven’t tested. embed-pdf-viewer/blocks/index.js Lines 54 to 58 in 0177138
to
This because setting a PDF from a media item which saves in JSON format works. Just brainstorming as saving an array seems to be problematic but saving it as JSON seems to work elsewhere. |
Well the above wasn't it. I think there's something in |
@akirk So the issue seemed to be that an attribute of type |
@akirk It seems that adjusting the blocks frame size causes the block editor to add a surrounding
<figure>
tag to theiframe
that contains the changed height or width. In this was only in theiframe
.This causes an invalid content error when trying to edit the post again.
Any ideas on how to fix this?
The text was updated successfully, but these errors were encountered: