WordPress.org

Make WordPress Core

Changeset 29185


Ignore:
Timestamp:
07/16/2014 02:29:53 AM (4 years ago)
Author:
azaozz
Message:

Editor scrolling: on setcontent, resize the editor after some delay to allow the browser to render the content. Props avryl, see #28328.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js

    r29050 r29185  
    141141            editor.dom.addClass( editor.getBody(), 'wp-autoresize' );
    142142        });
    143        
    144         editor.on( 'nodechange setcontent keyup FullscreenStateChanged', resize );
    145    
     143
     144        editor.on( 'nodechange keyup FullscreenStateChanged', resize );
     145
     146        editor.on( 'setcontent', function() {
     147            wait( 3, 100 );
     148        });
     149
    146150        if ( editor.getParam( 'autoresize_on_init', true ) ) {
    147151            editor.on( 'init', function() {
Note: See TracChangeset for help on using the changeset viewer.