[wp-trac] [WordPress Trac] #26778: Visual editor not showing wysywig editor and white text on white background

WordPress Trac noreply at wordpress.org
Mon Mar 31 00:00:21 UTC 2014


#26778: Visual editor not showing wysywig editor and white text on white background
--------------------------+------------------------------
 Reporter:  marcreck      |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by toscho):

 Found it! The text is white when the `name` attribute contains brackets.

 Test case:


 {{{
 add_action( 'add_meta_boxes_post', 'register_test_meta_boxes' );

 function register_test_meta_boxes() {
         add_meta_box( 'test_meta_box_1', 'Test box 1',
 'render_test_meta_box_1' );
         add_meta_box( 'test_meta_box_2', 'Test box 2',
 'render_test_meta_box_2' );
 }
 function render_test_meta_box_1() {
         $name = 'Foo';
         echo "Name: $name <br>";
         wp_editor( "<p>hello?</p>\n", $name );
 }
 function render_test_meta_box_2() {
         $name = 'Foo[b]';
         echo "Name: $name <br>";
         wp_editor( "<p>hello?</p>\n", $name );
 }
 }}}

 The second box content is white, and the markup renders as text.

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


More information about the wp-trac mailing list