[wp-trac] [WordPress Trac] #9964: Press This is Hinky in 2.8

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 30 23:41:39 UTC 2009


#9964: Press This is Hinky in 2.8
--------------------------+-------------------------------------------------
 Reporter:  jcwinnie      |        Owner:  noel    
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  2.8     
Component:  Press This    |      Version:  2.8     
 Severity:  normal        |   Resolution:          
 Keywords:  tool          |  
--------------------------+-------------------------------------------------

Comment(by longplay):

 It doesn't appear in the source, but when I view the code in Firebug for
 the Press This page it shows the HTML for the textarea as:

 <div class="editor-container">
 <textarea rows="15" class="mceEditor" style="width: 100%; color: white;"
 id="content" name="content">
 <p>content of post here</p>
 </textarea>
 </div>

 The bit that's missing from view source is the 'color:white' style.
 Delete it in Firebug and the text magically appears (presumably because
 the text is being set to white on a white background).

 Firebug reports it as being the element.style, I couldn't find it using a
 quick search in the referenced CSS files, so I assume it's being added by
 a function somewhere.

 I tried hard coding the colour to black on line 550 of press-this.php but
 while the source showed it OK, Firebug still reports is as "color:white"
 so I assume some code adds it when it loads (I do briefly see the text
 before it vanishes, so that would indicate my theory may be right).

 Right, I eventually tracked it back to this code at the top of the wp-
 admin/js/editor.js file:

 jQuery(document).ready(function(b){var
 a=wpCookies.getHash("TinyMCE_content_size");if(getUserSetting("editor")=="html"){if(a){b("#content").css("height",a.ch-15+"px")}}else{b("#content").css("color","white");...

 I changed white to black and voila, suddenly the text is visible.

 Now all I need to do is figure out what is adding all the tabs before and
 after.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9964#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list