[wp-trac] [WordPress Trac] #33876: Centering multiple images in one row in Wordpress is badly broken and has been for a while
WordPress Trac
noreply at wordpress.org
Tue Sep 15 00:45:09 UTC 2015
#33876: Centering multiple images in one row in Wordpress is badly broken and has
been for a while
--------------------------+-----------------------------
Reporter: archon810 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I've been meaning to start a ticket like this for a while, and it's
finally time to do it.
Using multiple images in a single paragraph/row in Wordpress is a
relatively common occurrence on our blog (androidpolice.com), but doing it
in TinyMCE is a big pain.
Problem 1: Aligncenter image class gets applied to the image itself, not
to the containing p tag, thus multiple centered images occupy full rows,
one image each. To the writer, it's even more confusing because they can't
press backspace from the beginning of the 2nd image to join it with the
first - nothing happens. Aligncenter is a really evil class IMO, as it
takes over the whole line.
Problem 2: Selecting multiple images and clicking Center, applies the
class only to one of them at best, which is completely counter-intuitive.
Unless an image is explicitly selected, this should instead apply the
center to the whole containing paragraph. In fact, this should happen as
long as the cursor is not on an image, no matter if the row is selected
and highlighted or not. See Windows Live Writer for doing it the right
way.
There are countless threads confused by this implementation, attempting to
fix it or get around it, but the only thing people have figured out so far
is creating a line above the images, putting some text into it, center
aligning, then dropping the images into the pre-centered paragraph. This
is basically an ugly hack in my opinion and requires coaching of every
writer.
I believe TinyMCE can get this resolved properly and benefit everyone
using Wordpress. What do you think, guys?
Just go play around with centering images, and you'll see how frustrating
and unpredictable it is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33876>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list