TinyMCE: add support for custom dashicon for wp.mce.View.setLoader().
Props procodewp. Fixes #37900. Built from https://develop.svn.wordpress.org/trunk@38774 git-svn-id: http://core.svn.wordpress.org/trunk@38717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb966db094
commit
af8eaef148
|
@ -636,10 +636,10 @@
|
||||||
/**
|
/**
|
||||||
* Sets a loader for all view nodes tied to this view instance.
|
* Sets a loader for all view nodes tied to this view instance.
|
||||||
*/
|
*/
|
||||||
setLoader: function() {
|
setLoader: function( dashicon ) {
|
||||||
this.setContent(
|
this.setContent(
|
||||||
'<div class="loading-placeholder">' +
|
'<div class="loading-placeholder">' +
|
||||||
'<div class="dashicons dashicons-admin-media"></div>' +
|
'<div class="dashicons dashicons-' + ( dashicon || 'admin-media' ) + '"></div>' +
|
||||||
'<div class="wpview-loading"><ins></ins></div>' +
|
'<div class="wpview-loading"><ins></ins></div>' +
|
||||||
'</div>'
|
'</div>'
|
||||||
);
|
);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38773';
|
$wp_version = '4.7-alpha-38774';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue