[wp-trac] [WordPress Trac] #45351: Add the Classic Editor's default TinyMCE init settings to the Classic Block instance init settings
WordPress Trac
noreply at wordpress.org
Wed Nov 14 17:03:52 UTC 2018
#45351: Add the Classic Editor's default TinyMCE init settings to the Classic Block
instance init settings
--------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: TinyMCE | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by azaozz):
Ugh, I'm definitely getting too tired :)
It's right there, been staring me in the face the whole time. The TinyMCE
init settings from script-loader are used only to override some of the
default TinyMCE settings that come from `print_default_editor_scripts()`,
used by `enqueue_default_editor()`, called by `wp_enqueue_editor()`. Then
the classic block just does `wp.oldEditor.initialize( [extra settings] )`
where the extra settings are those outputted from script-loader :)
Well, this seems to need a bit of documentation so others don't have to
look it up again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45351#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list