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

Media & Text: Remove "Insert from URL" from the replacement flow. #19606

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

Soean
Copy link
Member

@Soean Soean commented Jan 13, 2020

Description

Removes the "Insert from URL" from the MediaReplaceFlow in the Media & Text block, because this Block doesn't support this feature yet. If we add an URL, we can't detect if it's an image or a video. If we first add a video and then replace it with an image, it breaks.

We already have #14397 to add this feature the block.

Placeholder:
Bildschirmfoto 2020-01-13 um 22 25 06
Replacement
Before
Bildschirmfoto 2020-01-13 um 22 29 02
After
Bildschirmfoto 2020-01-13 um 22 25 23

@draganescu

@Soean Soean added the [Block] Media & Text Affects the Media & Text Block label Jan 13, 2020
@Soean Soean requested a review from draganescu January 13, 2020 21:30
Copy link
Contributor

@draganescu draganescu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this works great @Soean

@draganescu draganescu merged commit 4a3ac85 into master Jan 14, 2020
@draganescu draganescu deleted the remove/media-text-replace-url branch January 14, 2020 06:12
@ellatrix ellatrix added this to the Gutenberg 7.3 milestone Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Media & Text Affects the Media & Text Block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants