Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#27929 closed defect (bug) (worksforme)

Tables in visual editor get scaling boxes

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


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:


Cursor not in cell:

Cursor in cell:

Attachments (1)

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

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
10 years ago

This happens in TinyMCE demo as well:

#2 @nacin
10 years ago

  • Component changed from Editor to TinyMCE
  • Milestone changed from Awaiting Review to 3.9.1

Moving to 3.9.1 for review/investigation/discussion.

#3 @iseulde
10 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
10 years ago

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

#5 @helen
10 years ago

  • Milestone changed from 3.9.1 to Awaiting Review
  • Version changed from 3.9 to 3.5

I get them in the TinyMCE 3.x demo, and also in WordPress before 3.9:

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

#6 @azaozz
10 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
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

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.