Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#27929 closed defect (bug) (worksforme)

Tables in visual editor get scaling boxes

Reported by: AdamCapriola Owned by:
Priority: normal Milestone:
Component: TinyMCE Version: 3.5
Severity: normal Keywords: close
Cc: Focuses:

Description

If a simple table is created through the text editor, when I place the cursor inside a table cell while using the visual editor (WordPress 3.9, Chrome on Mac) the scaling boxes that now appear around images also appear around the table.

This wasn't expected behavior to me; are tables considered "media"?

Simple table example:

<table>
<tbody>
<tr>
<td>A</td>
<td>B</td>
</tr>
</tbody>
</table>

Cursor not in cell:

http://i.imgur.com/z8eN2wu.png

Cursor in cell:

http://i.imgur.com/gcgy0dS.png

Attachments (1)

Screen Shot 2014-04-21 at 07.27.25.png (7.1 KB ) - added by iseulde 12 years ago.

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
12 years ago

This happens in TinyMCE demo as well: http://www.tinymce.com/tryit/full.php.

#2 @nacin
12 years ago

  • Component EditorTinyMCE
  • Milestone Awaiting Review3.9.1

Moving to 3.9.1 for review/investigation/discussion.

#3 @iseulde
12 years ago

One situation in which this is useful is when your theme doesn't add width: 100%; for table in editor-style.css. I'd be really difficult if you can't put you cursor in one of the table cells. That doesn't make it the right solution though.

If the theme sets the width: 100%;, the horizontal and diagonal scaling boxes are useless.

Scaling boxes would also be useful if you could align tables, but currently that's not possible.

#4 @iseulde
12 years ago

Above a screenshot of a table added with the table plugin when a there is no width: 100%;.

#5 @helen
12 years ago

  • Milestone 3.9.1Awaiting Review
  • Version 3.93.5

I get them in the TinyMCE 3.x demo, and also in WordPress before 3.9: http://www.tinymce.com/tryit/3_x/full.php

I guess it's kind of weird in some ways, but I'm not sure this is really a bug.

#6 @azaozz
12 years ago

  • Keywords close added

Yes, not a recent change. I believe this is the same as image resizing in contenteditable mode. There is native support in Firefox and IE and TinyMCE adds it to WebKit.

#7 @azaozz
12 years ago

  • Milestone Awaiting Review
  • Resolutionworksforme
  • Status newclosed

This is the expected behavior, same as resizing images. Presently there's no way to enable resizing for images but disable it for tables (might be possible in newer browsers).

Note: See TracTickets for help on using tickets.