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: +905 B (+0.02%)

Total Size: 4.38 MB

📦 View Changed
Filename Size Change
apps/impress/out/_next/static/40a02c2c/_buildManifest.js 694 B +694 B (new file) 🆕
apps/impress/out/_next/static/chunks/5149.js 0 B -23 kB (removed) 🏆
apps/impress/out/_next/static/chunks/6875.js 23.9 kB +23.9 kB (new file) 🆕
apps/impress/out/_next/static/d4507f9c/_buildManifest.js 0 B -696 B (removed) 🏆

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
AntoLC force-pushed the feat/iframe-block branch from 4d71fbd to 7765b81 Compare July 10, 2026 14:07
AntoLC added 2 commits July 20, 2026 10:51
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 7765b81 to 76dd9c1 Compare July 20, 2026 08:52
@AntoLC

AntoLC commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

🚀 Preview will be available at https://2513-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant