Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please export TracksEditor to allow its use by themes and plugins #56646

Open
benlk opened this issue Nov 29, 2023 · 1 comment
Open

Please export TracksEditor to allow its use by themes and plugins #56646

benlk opened this issue Nov 29, 2023 · 1 comment
Labels
[Package] Block editor /packages/block-editor [Type] Enhancement A suggestion for improvement.

Comments

@benlk
Copy link
Contributor

benlk commented Nov 29, 2023

What problem does this address?

We're building some blocks with custom video components, and want to be able to upload and manage various caption/subtitle/chapter tracks. This would be easiest if we could use WordPress' TracksEditor component, but that component isn't exported from the WordPress packages. Instead, we're going to have to reimplement this functionality.

What is your proposed solution?

Export https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/video/tracks-editor.js#L186 so that plugin and theme authors can use it in their custom Blocks.

@benlk benlk added the [Type] Enhancement A suggestion for improvement. label Nov 29, 2023
@jordesign jordesign added the [Feature] Component System WordPress component system label Nov 29, 2023
@mirka mirka added [Package] Block editor /packages/block-editor and removed [Feature] Component System WordPress component system labels Dec 25, 2023
@mirka
Copy link
Member

mirka commented Dec 25, 2023

I'm tagging this as a @wordpress/block-editor issue as I think it would be more appropriate to export it from that package, rather than @wordpress/components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block editor /packages/block-editor [Type] Enhancement A suggestion for improvement.
3 participants