ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.57k stars 3.7k forks source link

Media embed resizing #6593

Open mlewand opened 4 years ago

mlewand commented 4 years ago

📝 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.

IonelLupu commented 3 years ago

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

felinepc commented 3 years ago

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.

rg2609 commented 3 years ago

Is this feature still in the pipline?

ap-coder commented 3 years ago

I also would like to request this feature.

achapman009 commented 3 years ago

This feature would be fantastic.

igos1 commented 3 years ago

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

sadeq-qafari commented 3 years ago

For the love of GOD please add this feature!

vlyalkobixal commented 3 years ago

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

EthosData commented 2 years ago

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...

francoisjohannesdutoit commented 2 years ago

this would be great!

Kwaadpepper commented 2 years ago

This is absolutely needed ! Thanks

JasonDeLierre commented 2 years ago

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!

zgpnuaa commented 2 years ago

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

kamalshkeir commented 1 year ago

@zgpnuaa nop everyone still waiting or moved to another editor

SethCram commented 1 year ago

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

SethCram commented 1 year ago

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.

BugHunter2k commented 1 year ago

I was searching for exactly this. Any news?

cmak9149 commented 11 months ago

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>