Changeset 36798 for trunk/src/wp-includes/js/tinymce/themes/modern/theme.js
- Timestamp:
- 03/01/2016 11:12:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/themes/modern/theme.js
r36589 r36798 588 588 editor.contextToolbars = {}; 589 589 }); 590 } 591 592 function fireSkinLoaded(editor) { 593 return function() { 594 if (editor.initialized) { 595 editor.fire('SkinLoaded'); 596 } else { 597 editor.on('init', function() { 598 editor.fire('SkinLoaded'); 599 }); 600 } 601 }; 590 602 } 591 603 … … 710 722 // Preload skin css 711 723 if (args.skinUiCss) { 712 tinymce.DOM.styleSheetLoader.load(args.skinUiCss, function() { 713 editor.fire('SkinLoaded'); 714 }); 724 tinymce.DOM.styleSheetLoader.load(args.skinUiCss, fireSkinLoaded(editor)); 715 725 } 716 726 … … 738 748 739 749 if (args.skinUiCss) { 740 tinymce.DOM.styleSheetLoader.load(args.skinUiCss, function() { 741 editor.fire('SkinLoaded'); 742 }); 750 tinymce.DOM.styleSheetLoader.load(args.skinUiCss, fireSkinLoaded(editor)); 743 751 } 744 752
Note: See TracChangeset
for help on using the changeset viewer.