WordPress.org

Make WordPress Core

Changeset 38774


Ignore:
Timestamp:
10/11/16 00:55:22 (5 months ago)
Author:
azaozz
Message:

TinyMCE: add support for custom dashicon for wp.mce.View.setLoader().

Props procodewp.
Fixes #37900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mce-view.js

    r38158 r38774  
    637637         * Sets a loader for all view nodes tied to this view instance. 
    638638         */ 
    639         setLoader: function() { 
     639        setLoader: function( dashicon ) { 
    640640            this.setContent( 
    641641                '<div class="loading-placeholder">' + 
    642                     '<div class="dashicons dashicons-admin-media"></div>' + 
     642                    '<div class="dashicons dashicons-' + ( dashicon || 'admin-media' ) + '"></div>' + 
    643643                    '<div class="wpview-loading"><ins></ins></div>' + 
    644644                '</div>' 
Note: See TracChangeset for help on using the changeset viewer.