[wp-trac] [WordPress Trac] #40718: MCE editor_settings first_init 'format' JSON names should be quoted

WordPress Trac noreply at wordpress.org
Thu Jun 1 19:47:13 UTC 2017


#40718: MCE editor_settings first_init 'format' JSON names should be quoted
-------------------------+-----------------------------
 Reporter:  MrGregWaugh  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => Future Release


Comment:

 This is the "setting format" for that TinyMCE option (object of arrays
 containing other objects), not really JSON.

 Looks like this can be enhanced to pass the needed setting as PHP arrays
 and objects, which then can be filtered (on the PHP side) and JSON encoded
 before adding the TinyMCE init array. This could be useful for plugins
 that want to extend that (quite complex) setting.

 Other than that, don't see a good reason to convert the format to "hard-
 coded" JSON.

 This is somewhere between maybelater and future release. Would be good to
 hear from plugin authors that would want to use a PHP filter there before
 even making a patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40718#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list