[wp-trac] [WordPress Trac] #22397: Editor - editor.js - removes paragraph tags inside tables

WordPress Trac noreply at wordpress.org
Fri Nov 9 10:26:50 UTC 2012


#22397: Editor - editor.js - removes paragraph tags inside tables
-----------------------------+--------------------------
 Reporter:  warmstal         |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Editor
  Version:  3.4.2            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 Inside tables (td) editor is removing <p> tags.
 Altough table editing is not standard activated in tinyMCE editor, but it
 can be added (plugin) or table editing can be done directly in HTML. So
 editor should respect <p> inside <td>

 Path: editor.dev.js at line92

 {{{
 // Sepatate <div> containing <p>
 //content = content.replace(/<div( [^>]*)?>\s*<p>/gi, '<div$1>\n\n');
 //** WarmStal D!sign: www.warmstal.nl / BTS 01-03-2011 Not only for div
 but also for td
 content = content.replace(/(<(td|div)[^>]*?>)\s*<p>/gi, '$1\n\n');
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22397>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list