Ideas on implementing wide-image, like Medium

I want to give users two options for the image width.

  1. editor-wide
  2. viewport-wide

If I, for the option 2, set the image size to 100vw, it will grow from the left end of the editor which is at the center of the viewport. making side scrollbar.

please throw me ideas!

If you are able to change image width with prosemirror, remaining part is just related to css styling I think.

1 Like