[wp-trac] [WordPress Trac] #28195: Preview embeds with wpview and auto embed on paste

WordPress Trac noreply at wordpress.org
Tue Jun 10 19:57:42 UTC 2014


#28195: Preview embeds with wpview and auto embed on paste
-------------------------+-------------------------
 Reporter:  avryl        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  javascript
-------------------------+-------------------------

Comment (by avryl):

 > Currently when pasting an URL that is not embeddable, we try to embed
 it, fail, and leave it as string. However while waiting for the ajax
 response, we insert the view wrapper that adds another block tag, so the
 URL ends up in another paragraph.

 Yes, so that's why 28195.11.patch checks if the cursor is in an empty
 paragraph. I don't think it's a good idea to embed the url in any other
 case.

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


More information about the wp-trac mailing list