Problem/Motivation

If I insert an image into a body field, and choose an alignment, such as Right, the image loses the alignment if I later enter Quick Edit mode for the content, and then exit the Quick Edit mode without making any changes.

Steps to reproduce

1. Create a new page
2. Insert image into the body field.
3. Align the image, for example Right
4. Save the new page.
5. Enter quick edit mode by hovering over the pencil and choose "Quick Edit"
6. Click the body field to activate editing
7. Close Quick Edit by X-ing out from the toolbar.

After

Fixed:
Fixed

Proposed resolution

Keep the alignment when closing Quick Edit mode.

Remaining tasks

(done) Fix issue
(done) Review patch
(done) Update screenshots

User interface changes

API changes

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Priority: Normal » Major
Issue tags: +JavaScript

Wow, great find! This is not a data loss problem, but a problem in Quick Edit's JS somewhere. Debugging…

wim leers’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

This fixes it. Please test the attached patch!

svenryen’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new559.67 KB

I tested the patch, and it fixes the problem.

After applying the patch, the alignment will be kept for the image.

svenryen’s picture

Issue summary: View changes
wim leers’s picture

Hurray :)

Thanks for the review!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed aa3ff14 and pushed to 8.0.x. Thanks!

  • alexpott committed aa3ff14 on 8.0.x
    Issue #2350021 by Wim Leers | svenryen: Fixed After entering Quick Edit...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.