jacobobryant / platypub

A publishing platform built with Biff
MIT License
65 stars 13 forks source link

Set max width on images within TinyMCE #17

Closed jacobobryant closed 2 years ago

jacobobryant commented 2 years ago

The grumpycat picture in https://github.com/jacobobryant/platypub/issues/14 reminded me that images in the editor are displayed at full width. Better if we make them shrink so they don't overflow on the x axis.

jeffp42ker commented 2 years ago

I've been manually re-sizing images to 800 or 1024 pixel-width prior to upload. I'd be nice to skip that if upload-image could handle that step.

jacobobryant commented 2 years ago

Hm, that should be doable... I've made a second issue for this: https://github.com/jacobobryant/platypub/issues/23

jacobobryant commented 2 years ago

(for this issue I'm basically just thinking about setting style="max-width:..." on image elements inside TinyMCE; I'm hoping TinyMCE has an option for that we can flip on)

jacobobryant commented 2 years ago

I went ahead and fixed this because I was writing a post with a bunch of images and it was super annoying, also a quick google search turned up the solution (a one-liner)