Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oyatek opened this issue Aug 10, 2023 · 6 comments
Open

Comments

@oyatek
Copy link

oyatek commented Aug 10, 2023

Any ideas?

image

image

@devaniljr
Copy link

Same problem. Did you find a solution?

@oyatek
Copy link
Author

oyatek commented Aug 10, 2023

@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.

@GeorgNation
Copy link

#11

@javadbat
Copy link

same here

@bettysteger
Copy link

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

@juniorvilas
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants