Core currently provides support for embedding of images. It is currently impossible to embed a video or a document. Also, when #2801277: [META] Support remote media assets as first-class citizens by adding Media Entity module in core → lands we'll need to embed media entities rather than files.
Contrib already has a solution for this. Entity embed is a module that supports embedding of any renderable entity and supports extensive display configuration.
Move parts of Entity embed → into core (simplified text filter) and handle embedding through it. Entity embed display plugins, embed button config entities, and other related API surface will stay in contrib. The simplified text filter will only support embedding media entities; people wishing to embed other types of entities will need to use contrib. Existing WYSIWYG functionality would remain the same.
In order:
Additional required bug fixes:
TBD
TBD
TBD
Closed: outdated
9.2
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.