[wp-trac] Re: [WordPress Trac] #2992: HTML editor deletes rows
(that have properties) from tables
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 20 23:45:27 GMT 2007
#2992: HTML editor deletes rows (that have properties) from tables
-----------------------------------+----------------------------------------
Reporter: FireMotion | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.3 (trunk)
Component: TinyMCE | Version: 2.0
Severity: major | Resolution:
Keywords: data-loss needs-patch |
-----------------------------------+----------------------------------------
Comment (by karmadude):
It looks like the following regular expression is causing the issue
{{{
wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
cleanup: function(type, content) {
...
case "get_from_editor":
...
//Handle table badness
...
content = content.replace(new RegExp('</tr>.*?<(tr|/table)>',
'mg'), '</tr><$1>');
...
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/2992#comment:16>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list