WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#41913 closed defect (bug) (invalid)

wp.editor.initialize fails on load

Reported by: rice_crisp Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.1
Component: Editor Keywords:
Focuses: Cc:

Description

wp.editor.initialize fails if you attempt to run it on load (wp.editor.getDefaultSettings is null). Is dependent on the scripts included in wp_enqueue_editor (class-wp-editor.php) of which there is no obvious way of making dependent.

Change History (4)

#1 follow-up: @truongwp
3 years ago

You can pass 'editor' to your script dependencies. I use wp.editor.initialize() with no problem.

#2 in reply to: ↑ 1 @rice_crisp
3 years ago

Last edited 3 years ago by rice_crisp (previous) (diff)

#3 @rice_crisp
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#4 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.