[wp-trac] [WordPress Trac] #41913: wp.editor.initialize fails on load
WordPress Trac
noreply at wordpress.org
Tue Sep 19 17:12:21 UTC 2017
#41913: wp.editor.initialize fails on load
--------------------------+------------------------------
Reporter: rice_crisp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.8.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by rice_crisp):
Replying to [comment:1 truongwp]:
> You can pass `'editor'` to your script dependencies. I use
`wp.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?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41913#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list