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

Editor: add embed editing #1729

Closed
designsimply opened this issue Dec 17, 2015 · 7 comments
Closed

Editor: add embed editing #1729

designsimply opened this issue Dec 17, 2015 · 7 comments
Assignees
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Enhancement

Comments

@designsimply
Copy link
Contributor

designsimply commented Dec 17, 2015

Raised by @aduth

We should determine if and how we want to support editing embeds present in a post's content. In wp-admin, the edit option presents a user with a dialog, allowing them to change the URL of the existing embed. This could be useful in cases where a user may want to e.g. replace the existing YouTube video with an alternate video.

11259

Note from @ryanboren

Editing a url in the context of the media modal is crowded and confusing. The edit modal for bare link embeds need only a field for changing the url. Without an edit modal, you must flip to HTML to change the link.

Pasting these links seems to most common flow. When I paste the wrong link, I usually delete the embed via the X in the inline toolbar and then paste the correct link. I don't recall ever needing an edit modal for embeds in my flows.

Not everyone is down with copy a paste, however. I bet there are many more manual flows out there that would benefit from having an edit modal. We should avoid sending people to HTML mode.

Note from @folletto

I was thinking this too. URL-based embeds to me feel that are 99% of the times copy-pasted, so making sure you can remove and re-paster, and even paste-over to replace, would be a good behaviour that would cover most of the scenarios.

Note from @ryanboren

I just tried manually typing in embed link in core and calypso. Neither embed on return. So, bare link embeds seem entirely cut-and-paste dependent. Showing the link in the inline toolbar like the inline link toolbar does might be nice. Otherwise you have to switch to HTML mode to peep the link.

calypso-gaps

@davewhitley
Copy link
Contributor

davewhitley commented Jan 23, 2017

Here's my suggestion:

Add an "Insert Embed Link" item to the insert media dropdown as seen in #5070

72a65c6a-0cc2-11e6-9e43-915999e507a8

This would show a simple modal with one input field, url.

Once it's embedded into the post, clicking on it would show an edit icon as well as the remove icon. Edit would show the same modal, and allow users to see and replace the url for the embed.

Basically it would function much like it does now, but this shows a UI for it and surfaces the link embed feature.

@folletto
Copy link
Contributor

Yes! Let's expand the patterns of the universal editor insert! :D

This would show a simple modal with one input field, url.

This is great for i1, in the future would be cool to expand a bit in that modal with a message that explains what embed links are and so on. :)

@shaunandrews
Copy link
Contributor

Here's a quick flow for how you could edit embeds based on @drw158's comment above:

embeds

That's using the standard media modal, but its a little empty. We could stray from the pattern a bit and do something like this maybe:

embed details copy

@lancewillett
Copy link
Contributor

@jblz Could Samus coordinate on this with Link? Shaun's got a start here, needs someone to take it.

@jblz jblz self-assigned this Aug 1, 2017
@jblz
Copy link
Member

jblz commented Aug 1, 2017

Sure -- added myself to the assignment list & will get it on our board

@iandunn iandunn self-assigned this Aug 4, 2017
iandunn added a commit that referenced this issue Aug 18, 2017
iandunn added a commit that referenced this issue Aug 24, 2017
iandunn added a commit that referenced this issue Sep 20, 2017
iandunn added a commit that referenced this issue Sep 21, 2017
iandunn added a commit that referenced this issue Sep 21, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
iandunn added a commit that referenced this issue Sep 28, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
iandunn added a commit that referenced this issue Sep 30, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
iandunn added a commit that referenced this issue Oct 2, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
iandunn added a commit that referenced this issue Oct 5, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
iandunn added a commit that referenced this issue Oct 5, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
@iandunn
Copy link
Contributor

iandunn commented Oct 5, 2017

#17152 is merged now, which lets people edit the URL without a preview:

Screenshot of editing URL without preview

The next step is to add a preview of the new URL in #18171.

MicBosi pushed a commit that referenced this issue Oct 5, 2017
This adds a dialog to edit the embed URL, but doesn't add a preview of the new URL, so it doesn't fully implement [the design in #1729](https://user-images.githubusercontent.com/191598/28643536-23f2e318-7224-11e7-8fd1-9a889d53b594.png). It's a step in that direction, though, and a future PR will add the preview.

See #1729
@lancewillett
Copy link
Contributor

Merged with ee273bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Enhancement
Projects
None yet
Development

No branches or pull requests

7 participants