✨(frontend) new custom block "embed"#2513
Open
AntoLC wants to merge 2 commits into
Open
Conversation
Contributor
|
Size Change: +910 B (+0.02%) Total Size: 4.37 MB 📦 View Changed
|
87f3ee2 to
4d71fbd
Compare
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.
4d71fbd to
7765b81
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: