Feature Request: Allow strings for width/height of TipTap Youtube #7372
fredericbahr
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When rendering an embedded youtube video using the official youtube extension the type for width and height are limited to number.
In order to support more and modern layouts, we can also pass strings as values to the attribute like
width="100%". Currently this is not possible following the official TypeScript API.Nonetheless this little workaround still achieves the desired goal:
Use Case
Render an embedded youtube video with full size or with percentual sizes relative to the container or viewport
Proposed new api:
Notes
This most likely also has an effect on interface
YoutubeOptionsType
New Tiptap API
Beta Was this translation helpful? Give feedback.
All reactions