[wp-trac] [WordPress Trac] #45117: Fix defining of the TinyMCE settings in script-loader
WordPress Trac
noreply at wordpress.org
Thu Oct 18 11:52:52 UTC 2018
#45117: Fix defining of the TinyMCE settings in script-loader
--------------------------+---------------------
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):
Ideally the TinyMCE init settings should be abstracted in `class-wp-
editor.php` and then used in script-loader. If that's likely to cause
problems and we must duplicate that code (needs more looking into), we
should add the "by-hand" translation from PHP to JS for the settings
array, see https://core.trac.wordpress.org/browser/branches/5.0/src/wp-
includes/class-wp-editor.php#L723. That will also support passing of a JS
function to some settings, which is somewhat common.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45117#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list