WordPress.org

Make WordPress Core

Changeset 44718


Ignore:
Timestamp:
01/30/2019 02:11:01 PM (3 years ago)
Author:
azaozz
Message:

TinyMCE: fix external references in wpview and wpemoji plugins in the Classic Block instance when running from /build.

Fixes #46147.

Location:
trunk/src/js/_enqueues/vendor/tinymce/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/tinymce/plugins/wpemoji/plugin.js

    r43309 r44718  
    1 ( function( tinymce, wp, settings ) {
     1( function( tinymce ) {
    22    tinymce.PluginManager.add( 'wpemoji', function( editor ) {
    33        var typing,
     4            wp = window.wp,
     5            settings = window._wpemojiSettings,
    46            env = tinymce.Env,
    57            ua = window.navigator.userAgent,
     
    126128        } );
    127129    } );
    128 } )( window.tinymce, window.wp, window._wpemojiSettings );
     130} )( window.tinymce );
  • trunk/src/js/_enqueues/vendor/tinymce/plugins/wpview/plugin.js

    r43309 r44718  
    22 * WordPress View plugin.
    33 */
    4 ( function( tinymce, wp ) {
     4( function( tinymce ) {
    55    tinymce.PluginManager.add( 'wpview', function( editor ) {
    66        function noop () {}
     7
     8        // Set this here as wp-tinymce.js may be loaded too early.
     9        var wp = window.wp;
    710
    811        if ( ! wp || ! wp.mce || ! wp.mce.views ) {
     
    200203        };
    201204    } );
    202 } )( window.tinymce, window.wp );
     205} )( window.tinymce );
Note: See TracChangeset for help on using the changeset viewer.