Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#28071 closed defect (bug) (fixed)

Selection lost when aligning image in a non empty paragraph

Reported by: iseulde's profile iseulde Owned by:
Milestone: 4.1 Priority: normal
Severity: normal Version:
Component: TinyMCE Keywords: close
Focuses: Cc:

Description

Steps to reproduce:

  1. Create a new post and paste the following in text mode, then switch back to visual mode. This is equal to adding a paragraph, and inserting a small, left aligned image.
    <img class="alignleft" src="http://placekitten.com/150/150" alt="Kitten" width="150" height="150" />This is a paragraph.
    
  2. Select the image by clicking on it and align the image to the right. The selection moves to the start of the paragraph.
  3. Go back to text mode and paste the following. This is almost the same as above, but the text and image are in a different paragraph. Note that is is visually indistinguishable.
    <img class="alignleft" src="http://placekitten.com/150/150" alt="Kitten" width="150" height="150" />
    
    This is a paragraph.
    
  4. Select the image by clicking on it and align the image to the right. The selection is kept, though the toolbar still disappears.

This happens in 3.8 and probably earlier versions as well. It looks like this is a TinyMCE bug.
However, the disappearing toolbar is WordPress. (De)selecting the image does not always go together with the toolbar (dis)appearing. I've seen the opposite happen as well, where the selection is moved, but the toolbar doesn't disappear. I'll create another ticket if I can give steps to reproduce.

Change History (3)

#1 @azaozz
9 years ago

Wondering if this needs to be fixed. It is (somewhat) expected for the buttons (that popup over the image) to disappear after some operations/commands. They used to disappear by design on pretty much any command before 3.9 (in TinyMCE 3.x). Perhaps it would be better to restore that behavior?

Last edited 9 years ago by azaozz (previous) (diff)

#2 @azaozz
9 years ago

  • Keywords close added

#3 @iseulde
9 years ago

  • Milestone changed from Awaiting Review to 4.1
  • Resolution set to fixed
  • Status changed from new to closed

This was fixed with the new image toolbar. See [30318] and #30147.

Note: See TracTickets for help on using tickets.