[wp-trac] [WordPress Trac] #23139: Insert/Edit Link adds unwanted paragraph when the link takes up the entire paragraph

WordPress Trac noreply at wordpress.org
Mon Jan 7 20:49:04 UTC 2013


#23139: Insert/Edit Link adds unwanted paragraph when the link takes up the entire
paragraph
-----------------------------+--------------------------
 Reporter:  JboyJW           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  TinyMCE
  Version:  3.5              |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 In the TinyMCE editor, select an entire paragraph of text and click the
 Insert/Edit Link button.  Enter a URL or select a page and Insert Link.
 Look at the resulting HTML(Text) view now.  You'll see that the link tag
 has surrounded the entire paragraph so that it look like this:

 <a href="testurl">Test

 </a>

 The HTML should simply be
 <a href="testurl">Test</a>

 If you update the page without looking at the HTML view, it produces extra
 spacing when you actually view the page.  The resulting HTML of the live
 page in Chrome looks like:

 <p><a href="testurl">Test</p>
 <p></a></p>

 The only way to get rid of the extra spacing is to manually edit the HTML
 in the TinyMCE editor and Update again.  Certainly not ideal for the
 average WordPress user.

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


More information about the wp-trac mailing list