| 1 | | 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. |
| | 1 | 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. |
| | 2 | |
| | 3 | That will also support using a JS function for some settings, which is somewhat common. |