[wp-trac] [WordPress Trac] #28071: Selection lost when aligning image in a non empty paragraph
WordPress Trac
noreply at wordpress.org
Wed Apr 30 08:42:19 UTC 2014
#28071: Selection lost when aligning image in a non empty paragraph
--------------------------+-----------------------------
Reporter: avryl | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28071>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list