[wp-trac] [WordPress Trac] #28070: Nested alignment breaks

WordPress Trac noreply at wordpress.org
Wed Apr 30 08:40:34 UTC 2014


#28070: Nested alignment breaks
--------------------------+-----------------------------
 Reporter:  avryl         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  3.9
 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, inserting a
 small, left aligned image, and aligning the paragraph to the right.
 {{{
 <p style="text-align: right;"><img class="alignleft"
 src="http://placekitten.com/150/150" alt="Kitten" width="150" height="150"
 />This is a paragraph.</p>
 }}}
 2. Select the image by clicking on it. '''Now you'll see that both the
 'align left' and 'align right' buttons are active.'''
 6. Try to align the image to the right by clicking on the 'align right'
 button (which is already active) in the toolbar. It won't work. The
 `alignleft` class will be removed, leaving the image without alignment.

 The first problem happens both in trunk and 3.9. Not in 3.8.
 The second problem happens in all of the above, and probably in earlier
 versions too.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28070>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list