Skip to content

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

Merged
draganescu merged 1 commit intomasterfrom
remove/media-text-replace-url
Jan 14, 2020
Merged

Media & Text: Remove "Insert from URL" from the replacement flow.#19606
draganescu merged 1 commit intomasterfrom
remove/media-text-replace-url

Conversation

@Soean
Copy link
Copy Markdown
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
Copy Markdown
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