Opened 6 years ago
Closed 6 years ago
#45580 closed defect (bug) (duplicate)
Twenty Seventeen: images in the Classic Block cannot be resized
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
To reproduce:
- Start a new post.
- Insert a Classic Block.
- Insert an image.
- Attempt to resize it by dragging the corners.
The image "snaps back" to 100% width.
Seems that has been the case for a while (in the Classic Editor). Caused by width: inherit;
from here:
.editor-styles-wrapper img { height: auto; /* Make sure images are scaled correctly. */ width: inherit; /* Make images fill their parent's space. Solves IE8. */ max-width: 100%; /* Adhere to container width. */ }
(which is imported from editor-style.css).
Attachments (3)
Change History (11)
#1
@
6 years ago
- Keywords has-patch added
I have created a proposed patch using your suggestion.
With width: inherit;
not included, I am able to resize the image.
Please see the screencast https://youtu.be/EB9yt_Ew-d8
#2
@
6 years ago
Thanks for spotting this, @azaozz, and for the fix, @subrataemfluence!
I've confirmed that this update does take care of the issue in the Classic Block and the TinyMCE editor.
The width: inherit;
was originally a fix for an IE8 issue; from what I can see, TinyMCE stopped supporting IE8, and I can only see the text tab with no option to switch to visual when I test that browser in Browserstack. So these styles should no longer be needed at all in the editor, either. But just in case -- @azaozz, could you confirm that what I'm seeing for IE8 sounds right for the current support, in case I'm missing something? Thanks!
#3
@
6 years ago
fix for an IE8 issue...
Ah, both core and TinyMCE don't support IE < 11. Think we can just ignore that fix for inside the editor :)
#4
@
6 years ago
can only see the text tab with no option to switch to visual
Me too, emulating in IE11 (which as far as I remember is quite accurate, almost "native").
Proposed patch