embed icon indicating copy to clipboard operation
embed copied to clipboard

Added embed tool in the code but it's not appearing on the front-end.

Open oyatek opened this issue 2 years ago • 9 comments

Any ideas?

image

image

oyatek avatar Aug 10 '23 09:08 oyatek

Same problem. Did you find a solution?

devaniljr avatar Aug 10 '23 17:08 devaniljr

@devaniljr I've got a reply on their Telegram chat:

Embed tool does not appear in the Toolbox by design because it does not require a separate input — users can paste links directly in paragraph blocks. You can configure a paragraph placeholder like "Write text or paste a link" for better UX.

I tried that and EditorJS tries to create an Embed block but I get Error 400 and the whole page stops working.

oyatek avatar Aug 10 '23 23:08 oyatek

#11

GeorgNation avatar Aug 17 '23 05:08 GeorgNation

same here

javadbat avatar Dec 24 '23 19:12 javadbat

I've also overwritten the original Embed Block Tool to show an input field where you can paste the URL!

you must also overwrite the render function, and add a validate function (otherwise empty embed blocks will be saved)!

I just did this here: https://gist.github.com/bettysteger/9d613904c2b14c15182e6204863b79b3

bettysteger avatar Feb 08 '24 15:02 bettysteger

same

juniorvilas avatar Jun 26 '24 19:06 juniorvilas