canvas-lms/packages
Ed Schiebel bad38d2e9e Constrain the size of images inserted into the rce
when the user first inserts an image from the tray, constrain its size.

closes COREFE-241

test plan:
  - load a page with the rce
  - have a relatively large image in the course images
  - insert the image into the rce
  > expect it's size to be constrained so neither edge is > 320px
  - select the image, and click Options
  > expect the Custom image size should reflect the correct current
    size of the image
  - change the image size and click Done
  > expect the image to be resized
  - add the image again
  - save what you're working on
  > expect the images to keep their set sizes
  - edit again
  - in html view, add a style attribute, and any other attributes
    to the <img> element
  - flip back to rich view
  > expect the image to look like you'd expect, given what you just did
  - change the image size in the tray
  > expect your custom style and other attributes to be preserved
  - upload landscape image that's wider than 320px
  > expect the grey placeholder box to be right-sized to 320 wide
  > expect the image to be right-sized when it replaces the placeholder
  - repeat, uploading a landscape file taller than 320px

Change-Id: I4aa3893eda846e82775c658fd51b7b8d796b2ec0
Reviewed-on: https://gerrit.instructure.com/207492
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-09-05 23:50:50 +00:00
..
babel-preset-pretranslated-format-message Move the pretranslated babel stuff into own pkg 2018-08-17 20:34:19 +00:00
browserslist-config-canvas-lms rename canvas-supported-browsers to browserslist-config-canvas-lms 2019-08-08 20:12:31 +00:00
canvas-media add close captions UI workflow 2019-09-03 22:44:21 +00:00
canvas-planner filter non-actionable console logs everywhere else too 2019-08-27 19:54:09 +00:00
canvas-rce Constrain the size of images inserted into the rce 2019-09-05 23:50:50 +00:00
jest-moxios-utils upgrade some NPM dependencies 2019-08-20 18:30:44 +00:00
js-utils filter non-actionable console logs everywhere else too 2019-08-27 19:54:09 +00:00
k5uploader [codemod] convert functions to fat arrows 2019-08-26 22:20:33 +00:00
old-copy-of-react-14-that-is-just-here-so-if-analytics-is-checked-out-it-doesnt-change-yarn.lock upgrade react from 15.x to 16.x 2018-09-26 19:04:47 +00:00