[wp-trac] Re: [WordPress Trac] #9218: Pasting HTML in the editor
fails
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 24 16:10:51 GMT 2009
#9218: Pasting HTML in the editor fails
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Unassigned
Component: Administration | Version: 2.7
Severity: major | Resolution:
Keywords: |
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):
* status: closed => reopened
* resolution: wontfix =>
* severity: normal => major
Comment:
Why wontfix? We both agree that this is related to wpautop. But why should
wpautop not get fixed accordingly? It's not that complicated... filtering
the content with something like this in a while loop before calling
wpautop would do the trick:
{{{
$pee = preg_replace("/(<[^>]+?)\n+/", "$1 ", $pee);
}}}
It could be run on ajax calls and before saving the post, rather than on
every page load.
The fact of the matter is, fixing this bug would spare countless headaches
for users who end up relying on html editors to format more complicated
posts.
D.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9218#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list