WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#27210 closed defect (bug) (fixed)

Set wpActiveEditor on DOM ready

Reported by: kovshenin Owned by: azaozz
Milestone: 3.9 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch
Focuses: javascript Cc:
PR Number:

Description

We currently set wpActiveEditor on click inside a .wp-editor-wrap, but we should also have a default active editor set on DOM load, to handle media insert from elements outside of the editor wrap, or ones triggered by non-click events, such as drag and drop in #19845.

Attachments (1)

27210.diff (527 bytes) - added by kovshenin 6 years ago.

Download all attachments as: .zip

Change History (4)

@kovshenin
6 years ago

#1 @kovshenin
6 years ago

  • Keywords has-patch added

Patch in 27210.diff

#2 @azaozz
6 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 27270:

Set wpActiveEditor to the id of the first instance on init, props kovshenin, fixes #27210.

#3 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 3.9
Note: See TracTickets for help on using tickets.