-
DescriptionSteps to ReproduceI added the Image Element component with This added the caption, media-popover and resizable components On Platejs documentation, everything works when I add an image platejs-video.mp4But on my editor, when I add an image by clicking on the button in the fixed toolbar (same as in the Platejs documentation) it doesn't appear, everything disappears and leaves a blank page editor-video.mp4fixed-toolbar-buttons.tsx
caption.tsx
media-popover.tsx
resizable.tsx
plugins.ts
my editor
SandboxExpected BehaviorEnvironment
BountyClick here to add a bounty via Algora. Funding
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
What's the error message in the console? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
How are you rendering that |
Beta Was this translation helpful? Give feedback.
-
I have a preview section where I transform json into html
I use CreateElement to create html tags, so when it's an image (element.type), it creates 2 img tags, which causes the problem. I've changed
to
just need to add the class for the image |
Beta Was this translation helpful? Give feedback.
I have a preview section where I transform json into html