[wp-trac] [WordPress Trac] #17764: TinyMCE breaks the autoembed feature
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 11 15:12:33 UTC 2011
#17764: TinyMCE breaks the autoembed feature
--------------------------+-----------------------
Reporter: dzver | Owner: azaozz
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.2
Component: Media | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Comment (by ocean90):
I couldn't reproduce it in Firefox. But here is a workaround for Chrome:
{{{
function my_remove_a_tag( $init ) {
$init['paste_preprocess'] = "function(pl, o) {o.content =
o.content.replace( /<a[^>]*>(.*?)<\/a>/gi, '$1' );}";
return $init;
}
add_filter( 'tiny_mce_before_init', 'my_remove_a_tag');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17764#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list