[wp-trac] [WordPress Trac] #31158: oEmbeds don't work if text is formatted

WordPress Trac noreply at wordpress.org
Thu Mar 19 23:24:06 UTC 2015


#31158: oEmbeds don't work if text is formatted
--------------------------+-------------------------
 Reporter:  siobhan       |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.2
Component:  Embeds        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------

Comment (by azaozz):

 In 31158.4.patch:
 - Improve the test if the paragraph doesn't contain text.
 - Strip all inline tags before adding the URL (that is eventually
 converted to wpView).

 Seems to work well in all major browsers. Will catch cases where the users
 have made a new paragraph, then clicked on the B or I buttons, etc.

 One "side effect": when pasting an URL that is not embeddable and was
 copied from another web page, and was bold or italic, it is converted to
 plain text, the bold/italic is removed. As that is very rare, thinking it
 shouldn't prevent this fix.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31158#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list