#41913 closed defect (bug) (invalid)
wp.editor.initialize fails on load
| Reported by: | 
  
     | 
      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)
Note: See
        TracTickets for help on using
        tickets.
    
You can pass
'editor'to your script dependencies. I usewp.editor.initialize()with no problem.