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.

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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Test_page___drupal8.png | 559.67 KB | svenryen |
| #2 | quickedit_revert_untransformed_text-2350021-2.patch | 1.1 KB | wim leers |
| Window_and_Test_page___drupal8.png | 492.46 KB | svenryen |
Comments
Comment #1
wim leersWow, great find! This is not a data loss problem, but a problem in Quick Edit's JS somewhere. Debugging…
Comment #2
wim leersThis fixes it. Please test the attached patch!
Comment #3
svenryen commentedI tested the patch, and it fixes the problem.
After applying the patch, the alignment will be kept for the image.
Comment #4
svenryen commentedComment #5
wim leersHurray :)
Thanks for the review!
Comment #6
alexpottCommitted aa3ff14 and pushed to 8.0.x. Thanks!