[wp-trac] [WordPress Trac] #29526: wpviews: embedURL: double paragraphs

WordPress Trac noreply at wordpress.org
Fri Sep 5 06:38:48 UTC 2014


#29526: wpviews: embedURL: double paragraphs
--------------------------+-----------------------------
 Reporter:  avryl         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  4.0
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  javascript    |
--------------------------+-----------------------------
 The view "text" for embedURL views includes paragraphs and when view are
 post processed, the view "text" is wrapped in a paragraph before replacing
 the view with it. Result: `<p><p>http://...</p></p>`. This is then undone
 by `switchEditors.pre_wpautop`. To see it for yourself, compare
 `tinyMCE.activeEditor.getContent();` and
 `window.switchEditors.pre_wpautop( tinyMCE.activeEditor.getContent() );`.
 To reproduce you shouldn't paste the url in *visual* editor, because then
 the "text" will be just the URL. Instead, paste it in the text editor or
 save the post.

 The view "text" should be the URL without anything around it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29526>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list