-
Notifications
You must be signed in to change notification settings - Fork 281
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
Conversation
/cc @antoniopol06 |
Just started reviewing :) |
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!
|
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. Thanks, |
…button-link-edit pattern for consistency. Fixes #517
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 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. |
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 How about we create an independent feature request for it so we can properly analyze it and tackle it as soon as we can? |
Just started reviewing :) |
Thank you, pull request merged! See changes here. |
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. |
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!