bad38d2e9e
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> |
||
---|---|---|
.. | ||
babel-preset-pretranslated-format-message | ||
browserslist-config-canvas-lms | ||
canvas-media | ||
canvas-planner | ||
canvas-rce | ||
jest-moxios-utils | ||
js-utils | ||
k5uploader | ||
old-copy-of-react-14-that-is-just-here-so-if-analytics-is-checked-out-it-doesnt-change-yarn.lock |