[wp-trac] [WordPress Trac] #13327: Post editor puts content through wpautop() before displaying it to users without JS enabled

WordPress Trac wp-trac at lists.automattic.com
Tue May 11 01:04:35 UTC 2010


#13327: Post editor puts content through wpautop() before displaying it to users
without JS enabled
--------------------------+-------------------------------------------------
 Reporter:  markjaquith   |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  3.1
Component:  Editor        |     Version:  3.0
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by azaozz):

 Replying to [comment:2 markjaquith]:
 > For users with JS, this may cause a flicker...

 ... And make the visual editor load slower.

 The problem is that php (the server) has to know if the browser supports
 JS before outputting the post content so it applies the proper filter.
 That is doable with a cookie.

 > One possible fix would be to load the TinyMCE version of the content up
 in a hidden textarea, load the regular text in the real textarea, and then
 attempt to use JS to copy the TinyMCE version over to the real textarea.
 Without JS, this would fail, and they'd keep the real content.

 We could try doing something similar with CSS only, will run some tests.

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


More information about the wp-trac mailing list