Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#37753 closed defect (bug) (duplicate)

The Edit button on a gallery does nothing unless you first click on the gallery.

Reported by: efco Owned by:
Priority: normal Milestone:
Component: TinyMCE Version: 4.6
Severity: normal Keywords: needs-patch
Cc: Focuses:

Description

The Edit button on galleries does nothing when clicked unless you first click on the gallery, and bring it into focus (blue highlighted border).

Steps to reproduce:

  1. Edit a page containing a gallery.
  2. Without clicking anything else on the page, hover over and click the gallery edit button.
  3. Nothing happens.
  4. Click the gallery itself, bringing it into focus.
  5. Click the gallery edit button.
  6. Gallery edit window opens as intended.

Change History (7)

#1 @Clorith
10 years ago

  • Component Gallery → Editor

Can replicate this.

When the gallery is the first item in the editor (can't be any text, whitespace, etc. before it) when the page is loaded, the text caret is identified as being at the start of the editor box, making the edit/remove overlay for galleries visible without being a legitimate action at that point.

Does not output the overlay in 4.5.3

Going to chuck this over on the Editor component, as this is caused by the editor behavior, and not the gallery it self I'd say.

#2 @swissspidy
10 years ago

  • Milestone Awaiting Review → 4.7

#3 @jorbin
10 years ago

  • Keywords needs-patch added

#4 @swissspidy
10 years ago

  • Milestone 4.7 → Future Release

Punting because of a lack of traction and beta 1 coming up soon.

#5 @dineshc
10 years ago

#39306 was marked as a duplicate.

#6 @iseulde
10 years ago

  • Component Editor → TinyMCE

#7 @azaozz
10 years ago

  • Milestone Future Release
  • Resolution → duplicate
  • Status new → closed

Duplicate of #38849. Closing this as there is a patch on the other ticket.

Note: See TracTickets for help on using tickets.