TinyMCE: add support for custom dashicon for wp.mce.View.setLoader().
Props procodewp. Fixes #37900. git-svn-id: https://develop.svn.wordpress.org/trunk@38774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b3132214e
commit
f239c71648
@ -636,10 +636,10 @@
|
||||
/**
|
||||
* Sets a loader for all view nodes tied to this view instance.
|
||||
*/
|
||||
setLoader: function() {
|
||||
setLoader: function( dashicon ) {
|
||||
this.setContent(
|
||||
'<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>'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user