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

WordPress Trac noreply at wordpress.org
Fri Jun 6 16:49:27 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):

 28195.6.patch includes all of the previous patches and detects if there
 are scripts being added. If so it creates an iframe, stuffs the html in it
 and resizes it. Just putting it here, not sure if it's all OK.

 So ideally the interaction with TinyMCE's DOM should be done by the API. A
 plugin shouldn't have to do this `this.node.insertBefore(
 dom.createFragment( html ), this.node.lastChild );` to insert content
 before the `ins` tag.

 I'll also work on a patch so that an error is displayed if the ajax
 request fails.

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


More information about the wp-trac mailing list