[wp-trac] Re: [WordPress Trac] #3946: TinyMCE converts strong & em
to b & i without checking full tag.
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 17 01:16:23 GMT 2007
#3946: TinyMCE converts strong & em to b & i without checking full tag.
-----------------------------+----------------------------------------------
Reporter: Linusmartensson | Owner: andy
Type: defect | Status: new
Priority: normal | Milestone: 2.4
Component: TinyMCE | Version: 2.1.2
Severity: normal | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment (by thee17):
On second though, what if we changed the above to:
{{{
// Convert all strong/em to b/i in Gecko
if (tinyMCE.isGecko) {
h = h.replace(/<strong/gi, '<b');
h = h.replace(/<em(\/?)/gi, '<i');
h = h.replace(/<em /gi, '<i');
h = h.replace(/<\/strong>/gi, '</b>');
h = h.replace(/<\/em>/gi, '</i>');
h = h.replace(/<\/ibed>/gi, '</embed>');
h = h.replace(/<ibed /gi, '<embed');
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3946#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list