[wp-trac] [WordPress Trac] #45221: FIx the TInyMCE init array in script-loader

WordPress Trac noreply at wordpress.org
Mon Oct 29 17:42:47 UTC 2018


#45221: FIx the TInyMCE init array 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):

 In 45221.diff:
 - Fix possible regressions when translating the init array from PHP to JS.
 TinyMCE expects "raw js" init object.
 - Fix removal of non-JSON encoded value for the `style_formats` setting.
 - Reformat the code to make it readable :)

 The patch also copies the way the init array is outputted from class-wp-
 editor.php to script-loader.php. Perhaps it would be better to keep all of
 this in class-wp-editor.php instead of (partially) copying it to script-
 loader.php.

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


More information about the wp-trac mailing list