-
The node exists, so it would be the case of adding an item to the block menu, along with a method of adding the URL. I would suggest an JS prompt box? We would also need to consider how the markdown would be parsed back into an embed, since no special syntax exists. Happy to submit a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
This has triggered some ideas on how to improve the API here before v10 goes gold. I'm thinking something like: <Editor
embeds={[
{
name: "doc",
title: "Google Doc",
keywords: "google docs gdocs",
icon: <GoogleDocIcon />,
matcher: href => href.matches(/docs.google.com/i),
component: GoogleDocEmbed,
showInBlockMenu: true
}
]}
/> This would essentially match the format for other menu items here, but with the addition of You're right that there is a little bit of a question on how to get the url from the user, I'd rather not use a plain javascript dialog if possible. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Made some good headway here, just have the link insertion part to do:
|
Beta Was this translation helpful? Give feedback.
-
This functionality was released as part of v10.0.0. |
Beta Was this translation helpful? Give feedback.
This functionality was released as part of v10.0.0.