#41913 closed defect (bug) (invalid)
wp.editor.initialize fails on load
| Reported by: | rice_crisp | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Editor | Version: | 4.8.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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)
#2
in reply to: ↑ 1
@
9 years ago
Replying to truongwp:
You can pass
'editor'to your script dependencies. I usewp.editor.initialize()with no problem.
that only includes editor.js.
class-wp-editor.php is where the script file is added that sets wp.editor.getDefaultSettings
are you running wp.editor.initialize immediately or on a button click or something?
Version 0, edited 9 years ago by
(next)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
You can pass
'editor'to your script dependencies. I usewp.editor.initialize()with no problem.