Embed Figma #2533
Unanswered
pushkarchand
asked this question in
Q&A
Embed Figma
#2533
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to embed Figma in the Editor
I tried to include Figma in the service as per the documentation
{ class: Embed, inlineToolbar: false, config: { services: { youtube: true, figma: { regex: /https:\/\/www.figma.com\/file\/([^\/\?\&]*)\/([^\/\?\&]*)/, embedUrl: 'https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2F<%= file_id %>%2F<%= node_id %>%3Ftype%3Ddesign%26mode%3Ddesign%26t%3D<%= timestamp %>', html: '<iframe style="border: 1px solid rgba(0, 0, 0, 0.1);" width="800" height="450" src="<%= embed_url %>" allowfullscreen></iframe>', width: 800, height: 450, id: (groups: any) => { const [fileId, nodeId] = groups; const timestamp = Date.now(); return { file_id: fileId, node_id: nodeId, timestamp }; }, }, }, }, }
Beta Was this translation helpful? Give feedback.
All reactions