[wp-trac] [WordPress Trac] #18534: Synchronize block tags between PHP and JS versions of wpautop()

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 14 23:34:34 UTC 2012


#18534: Synchronize block tags between PHP and JS versions of wpautop()
---------------------------------+------------------
 Reporter:  SergeyBiryukov       |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  3.5
Component:  Editor               |     Version:  3.2
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.5-early  |
---------------------------------+------------------

Comment (by azaozz):

 Replying to [comment:15 MarcusPope]:
 > ...I highly suggest that you make an ajax request to the php version on
 tab switch instead of failing to maintain two versions.  This would reduce
 the application complexity, and make the logic DRY.

 Yes, there are differences between the PHP and JS versions of autop, but
 they serve different purpose.

 Apart form making the Visual -> Text -> Visual editor switching a lot
 faster, the JS autop works together with TinyMCE's and browser's cleanup
 on loading the html code.

 Was actually looking at removing all `</p>` from the JS autop. That would
 simplify it a lot and may remove the need for `blocklist`.

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


More information about the wp-trac mailing list