[wp-trac] [WordPress Trac] #31464: MCE Views - Don't restrict importing of styles to AV views.

WordPress Trac noreply at wordpress.org
Thu Feb 26 14:30:53 UTC 2015


#31464: MCE Views - Don't restrict importing of styles to AV views.
-------------------------+-----------------------------
 Reporter:  mattheu      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  javascript   |
-------------------------+-----------------------------
 FIrstly - some great improvements to the MCE view code recently - see
 31412.

 I would like to register a custom view which is sometimes sandboxed in an
 iFrame. I would also like to have the styles imported from the editor.

 However this is hardcoded to only do this for video, audio and playlists.

 `importStyles = this.type === 'video' || this.type === 'audio' ||
 this.type === 'playlist';`

 I think this should be a property on the view object - set to false by
 default but true for the AV views. This would allow me to easily enable it
 for my views.

 Patch incomming.

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


More information about the wp-trac mailing list