You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behaviour is also seen when copy-pasting slate (ast) images within the editor, so I imagine it's not specifically related to the HTML deserialization, but more likely one of the insertion helper functions: https://codesandbox.io/s/plate-reproduction-image-ast-deserializing-7cler?file=/index.tsx
Try copying the image and pasting it into an empty paragraph.
This should be fixed on Slate 0.66 gets released, namely with ianstormtaylor/slate#4489 and then after we land #995 and release. So probably sometime next week this should work.
In the interim, you could add a custom preInsert method that does not attempt to rewrite the first node type.
Description
After copying an image (eg. from wikimedia) and pasting it into an empty paragraph, an 'image' node without the "url" property is created.
Steps
Sandbox
https://codesandbox.io/s/plate-reproduction-image-deserializing-o2g4m
Expectation
If you paste the same image in any other paragraph, the editor splits the content and creates the 'image' node correctly.
Environment
Funding
The text was updated successfully, but these errors were encountered: