Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#22397 closed defect (bug) (duplicate)

Editor - editor.js - removes paragraph tags inside tables

Reported by: warmstal Owned by:
Priority: normal Milestone:
Component: Editor Version: 3.4.2
Severity: normal Keywords:
Cc: Focuses:

Description

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@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');

Change History (1)

#1 @SergeyBiryukov
14 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #20943.

Note: See TracTickets for help on using tickets.