Editing URLs does not work with inline images #4148
rdrezner
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
In our app, we use the image plugin with the
isInline: true
setting. With this configuration, editing URLs through the floating media input does not work correctly; it updates (adds) the URL property of a parent node (p
).I worked around this issue by patching the
submitFloatingMedia
function. Instead of updating the selection, I update the element passed through the function parameter. This code works regardless of whether the image is an inline or a block node:Maybe you should consider applying this code to upstream as it seems more reliable.
Reproduction URL
No response
Reproduction steps
Plate version
34.0.0
Slate React version
0.103.0
Screenshots
No response
Logs
No response
Browsers
No response
Funding
Beta Was this translation helpful? Give feedback.
All reactions