ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Media embed resizing

Open mlewand opened this issue 4 years ago • 13 comments

📝 Provide a description of the new feature

It should be possible to resize embedded content.

It would make sense to utilize widget resizer that is used in image resize plugin.

Something I'm wondering about is whether resize feature should always be enabled for any media, because I feel like while it make sense for YouTube, Vimeo or Google Maps embed - it doesn't make much sense for Twitter or any text-based embeds.


If you'd like to see this feature implemented, add a 👍 reaction to this post.

mlewand avatar Apr 09 '20 20:04 mlewand

Are there any plans of including this feature in the next build? I see it got quite a lot of likes

IonelLupu avatar Apr 02 '21 15:04 IonelLupu

Yes please this feature would be super handy. Even without drag-and-drop resize, some preset options like 50% 75% etc similar to the image resizing toolbar option would still help a lot.

felinepc avatar Jun 05 '21 23:06 felinepc

Is this feature still in the pipline?

rg2609 avatar Aug 24 '21 12:08 rg2609

I also would like to request this feature.

ap-coder avatar Aug 30 '21 17:08 ap-coder

This feature would be fantastic.

achapman009 avatar Sep 13 '21 15:09 achapman009

I am also waiting for this feature to be implemented) will really be great)

igos1 avatar Nov 06 '21 16:11 igos1

For the love of GOD please add this feature!

sadeq-qafari avatar Nov 10 '21 12:11 sadeq-qafari

I am also interested in this feature to be added like for the image ImageResize plugin

vlyalkobixal avatar Nov 12 '21 00:11 vlyalkobixal

I am VERY interested in this feature too! it will make the use of YouTube/Vimeo videos usable in this editor. Otherwise it does not make sense if we cannot resize them...

EthosData avatar Feb 15 '22 12:02 EthosData

this would be great!

francoisjohannesdutoit avatar Apr 22 '22 17:04 francoisjohannesdutoit

This is absolutely needed ! Thanks

Kwaadpepper avatar Jun 02 '22 11:06 Kwaadpepper

Someone pls work on this and update. It's simple oversight of a necessary feature. Quick win if image resize already has functionality. Thanks if possible!

JasonDeLierre avatar Jul 10 '22 16:07 JasonDeLierre

Any progress now?How we can we resize media embeds videos just like images in the editor?

zgpnuaa avatar Sep 19 '22 13:09 zgpnuaa

@zgpnuaa nop everyone still waiting or moved to another editor

kamalshkeir avatar Feb 13 '23 12:02 kamalshkeir

Still waiting on this. It'd be a very useful feature

SethCram avatar Mar 28 '23 16:03 SethCram

Does anybody know if there's a way to achieve this functionality through a 3rd party plugin or custom scripting?

You can insert a single cell table followed by media embedding within the cell to achieve easy resizing as mentioned in #8468, but this method isn't very intuitive or user friendly.

SethCram avatar Mar 28 '23 16:03 SethCram

I was searching for exactly this. Any news?

BugHunter2k avatar Mar 29 '23 08:03 BugHunter2k

I did an experiment to override the default video size: I added a div wrapper around the media and set the size of the DIV. That appear to work:

<style>
.abc {
   width: 500px;
   background-color:red;
}
</style>
<div class="abc">
   <figure class="media">
       <div data-oembed-url="https://www.youtube.com/watch?v=Bz6FUlHCjA4">
           <div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;">
               <iframe src="https://www.youtube.com/embed/Bz6FUlHCjA4" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
           </div>
       </div>
   </figure>
</div>

cmak9149 avatar Nov 27 '23 16:11 cmak9149