docs icon indicating copy to clipboard operation
docs copied to clipboard

embed field lacks info

Open Boorj opened this issue 6 years ago • 3 comments

When i'm trying to use embed and paste code from youtube (<iframe...>..) - it gives and error: image

My first thought was that embed field should allow using some lines of html-code.

here's value: image

Maybe we should add some examples? Or write down requirements (i know about placeholder, yes)

Boorj avatar Aug 24 '18 12:08 Boorj

But it already says 'URL of content to embed' If you wanna take the embed code that sites like YouTube give you, you could simple use a type: textarea instead

eduardomart avatar Aug 27 '18 17:08 eduardomart

I agree, but.. on many services when someone is you have "embed code" . So i thought it deserves a mention in docs: https://docs.bolt.cm/3.5/fields/embed like "you can only paste url, not code"

Boorj avatar Aug 27 '18 18:08 Boorj

Or even better:

Field is supposed to get an url as input. If the url is valid, Bolt gets data from the service (i.e. from youtube for http://youtube.com/... and provides that to record. List of received array fields depends on service. See more information on official oEmbed website

Boorj avatar Aug 27 '18 18:08 Boorj