plate icon indicating copy to clipboard operation
plate copied to clipboard

Video:It is not render, when I add a video from “Insert Via URL ”

Open Damon0820 opened this issue 3 months ago • 1 comments

Description

Video:It is not render, when I add a video from “Insert Via URL ”。The reason almost like isUpload prop is falsy Image

Image Image

Reproduction URL

No response

Reproduction steps

1. Go to 'fixed-toolbar'
2. Click on 'video->Insert Via URL'
3. Input 'a video url'
4. See problem

Plate version

v49

Slate React version

0.112

Screenshots


Logs


Browsers

No response

Damon0820 avatar Sep 16 '25 07:09 Damon0820

This happens because Plate only renders videos if the isUpload prop is true, which is meant for uploaded files. When you use "Insert Via URL", isUpload is falsy, so the video doesn't render by default. This is a design choice—Plate treats plain URLs as links unless you use the embed workflow or add a custom parser/plugin for auto-embedding.

To fix this, you can either modify your video node to set isUpload: true when inserting via URL, or adjust your rendering/component logic to allow videos with just a url (without requiring isUpload). For more advanced use cases, you can add custom URL parsers to the media-embed plugin to support more embed types and providers. See more details in the docs and discussion.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Sep 16 '25 07:09 dosubot[bot]