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

WordPress Trac noreply at wordpress.org
Sun Jun 15 23:40:37 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:               |     Focuses:  javascript

Comment (by azaozz):

 Replying to [comment:59 avryl]:
 > ...the "text" for embedded URLs is `<p>URL</p>`.

 This should be only the URL, no tags?

 > For some reason, when there are already embeds in the post, the editor
 start with an undo level.

 This is caused by replacing the views "text" with the wrapper divs. Was
 playing with resetting the undo levels on initial load. Seems kind of
 doable but risky when the server is slow and the user starts typing before
 all views are loaded. We can cancel it on keyup, but then are left with
 the "weird" undos...

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

More information about the wp-trac mailing list