Skip to content

✨(frontend) new custom block "embed"#2513

Open
AntoLC wants to merge 2 commits into
mainfrom
feat/iframe-block
Open

✨(frontend) new custom block "embed"#2513
AntoLC wants to merge 2 commits into
mainfrom
feat/iframe-block

Conversation

@AntoLC

@AntoLC AntoLC commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Purpose

We introduce a new custom block called "embed" that allows users to embed external content into their documents. This block can be used to include interactive widgets or other web content directly within the document editor.
It is a powerful custom block that can make your document much more interactive.

Proposal

Includes directly your favorite tools in Docs.
If the tool is collaborative like Grist or TLDraw, you will be able to collaborate in it directly from Docs.

Enregistrement.2026-07-08.171352.mp4

Settings

2 new settings are included to control this feature, ex:

FRONTEND_EMBED_BLOCK_ENABLED=<boolean>
FRONTEND_EMBED_BLOCK_ALLOWED_ORIGINS={
  "grist.numerique.gouv.fr": "allow-scripts allow-same-origin",
   "*.numerique.gouv.fr": "allow-scripts",
   "tldraw.com": "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-form",
}

@AntoLC AntoLC self-assigned this Jul 8, 2026
@AntoLC AntoLC added frontend feature add a new feature editor labels Jul 8, 2026
@AntoLC AntoLC force-pushed the feat/iframe-block branch from d849479 to 4ce76de Compare July 8, 2026 15:19
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Size Change: +910 B (+0.02%)

Total Size: 4.37 MB

📦 View Changed
Filename Size Change
apps/impress/out/_next/static/3ad98aa4/_buildManifest.js 697 B +697 B (new file) 🆕
apps/impress/out/_next/static/446cb02b/_buildManifest.js 0 B -697 B (removed) 🏆
apps/impress/out/_next/static/chunks/5149.js 0 B -23.1 kB (removed) 🏆
apps/impress/out/_next/static/chunks/6875.js 24 kB +24 kB (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the feat/iframe-block branch from 4ce76de to 9775a22 Compare July 9, 2026 09:58
@AntoLC AntoLC requested review from jbpenrath and sneko July 10, 2026 08:51
@AntoLC AntoLC marked this pull request as draft July 10, 2026 09:02
@AntoLC AntoLC requested a review from lunika July 10, 2026 09:14
@AntoLC AntoLC force-pushed the feat/iframe-block branch 4 times, most recently from 87f3ee2 to 4d71fbd Compare July 10, 2026 13:50
@AntoLC AntoLC marked this pull request as ready for review July 10, 2026 13:51
AntoLC added 2 commits July 10, 2026 16:06
We introduce a new custom block called "embed" that
allows users to embed external content into their
documents. This block can be used to include
videos, interactive widgets, or other web content
directly within the document editor.
It is a powerfull custom block that can make
your document much more interactive.
We added 2 settings for the embed block:
- FRONTEND_EMBED_BLOCK_ENABLED: to enable or disable
  the embed block in the editor
- FRONTEND_EMBED_BLOCK_ALLOWED_ORIGINS: to define a
  list of allowed origins for the embed block, and
  the associated sandbox attributes (allow-scripts,
  allow-same-origin, etc.)
This will allow to control the usage of the embed
block in the editor, and to restrict the origins
that can be embedded.
@AntoLC AntoLC force-pushed the feat/iframe-block branch from 4d71fbd to 7765b81 Compare July 10, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant