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 | Owned by: | |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | close |
Focuses: | Cc: |
Description
Steps to reproduce:
- 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.
- Select the image by clicking on it and align the image to the right. The selection moves to the start of the paragraph.
- 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.
- 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)
Note: See
TracTickets for help on using
tickets.
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?