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

Improve ae-embed plugin widget selection #524

Closed
wants to merge 9 commits into from
Closed

Improve ae-embed plugin widget selection #524

wants to merge 9 commits into from

Conversation

jbalsas
Copy link
Contributor

@jbalsas jbalsas commented May 21, 2016

Hey @ipeychev, this is a possible fix for #517.

We've changed the way the widgets are selected and handled to let CKEditor handle it in its own way, and figured out a different way to show the toolbar on them.

On top of that, we've also added a remove button to the embed edit button following the pattern on the link one so it is possible to remove a widget from the toolbar.

Thanks!

@jbalsas jbalsas changed the title Remove only the widget wrapper Improve ae-embed plugin widget selection May 21, 2016
@jbalsas
Copy link
Contributor Author

jbalsas commented May 21, 2016

/cc @antoniopol06

@ipeychev
Copy link
Contributor

Just started reviewing :)

:octocat: Sent from GH.

@ipeychev
Copy link
Contributor

Hey Chema,

This is really cool, but right now clicking on the button for adding an embedded media throws an exception? Please see the attached screencast.

Thanks,
bug

@jbalsas
Copy link
Contributor Author

jbalsas commented May 22, 2016

Oh! Forgot to check that one! I was always pasting a url

I'm not at home right now, but I'll take a look as soon as a I get back!
El El dom, 22 may 2016 a las 18:26, Iliyan Peychev notifications@github.com
escribió:

Hey Chema,

This is really cool, but right now clicking on the button for adding an
embedded media throws an exception? Please see the attached screencast.

Thanks,
[image: bug]
https://cloud.githubusercontent.com/assets/78014/15455114/a9b56c32-204a-11e6-905e-158acf5cfcd3.gif


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#524 (comment)

@ipeychev
Copy link
Contributor

Great, the rest is cool!

One thing to consider - maybe it will make sense to allow people to set the size of the embedded content. Right now it takes the whole content width and there is no way to change it. In the same time, I'm not sure if we can make it perfect for every provider.
As I see, the response contains the name of the provider - "provider_name": "YouTube" or "provider_name": "Twitter" for example. Maybe we can add such class to the wrapping div, something like data-provider=YouTube, so people will be able to style it accordingly?

Thanks,

…button-link-edit pattern for consistency.

Fixes #517
@jbalsas
Copy link
Contributor Author

jbalsas commented May 22, 2016

Hey Iliyan!

I've pushed one extra commit with some fixes for the remove button. I've refactored it so it better follows the same pattern as button-link-edit.

This has also made me realize we never got around to create tests for this feature, so I'll ask @antoniopol06 to work on that whenever we can.

@jbalsas
Copy link
Contributor Author

jbalsas commented May 22, 2016

Regarding the width and height of the embeds, I remembered you already brought this up on our initial discussion and I never followed on this. I'm really sorry about that 😢

I get the feeling that just a class might not be enough. Depending on the media content, it might be necessary to, for example, set the width and height attributes of the iframe, or maybe even request the embed again if the query supports dimensions as the output might be different.

How about we create an independent feature request for it so we can properly analyze it and tackle it as soon as we can?

@ipeychev
Copy link
Contributor

Just started reviewing :)

:octocat: Sent from GH.

@ipeychev
Copy link
Contributor

Thank you, pull request merged! See changes here.

:octocat: Sent from GH.

@ipeychev ipeychev closed this May 23, 2016
@ipeychev
Copy link
Contributor

ipeychev commented May 23, 2016

Hey Chema and Antonio,

Great, this was a cool fix which means it is time to release another minor version!

About setting the size of the embedded content, if you think the class won't be enough, then, sure - let's open a ticket to consider what can be done.

@jbalsas @antoniopol06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants