WordPress.org

Make WordPress Core

Changeset 29117


Ignore:
Timestamp:
07/12/14 00:53:08 (3 years ago)
Author:
azaozz
Message:

Editor scrolling: disable on mobile devices and hide the resize handle. See #28328.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r29075 r29117  
    1313wp_enqueue_script('post'); 
    1414 
    15 if ( post_type_supports( $post_type, 'editor' ) ) { 
     15if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() ) { 
    1616    wp_enqueue_script('editor-expand'); 
     17    $_wp_autoresize_on = true; 
    1718} 
    1819 
     
    497498    'tinymce' => array( 
    498499        'resize' => false, 
    499         'wp_autoresize_on' => true, 
     500        'wp_autoresize_on' => ! empty( $_wp_autoresize_on ), 
    500501        'add_unload_trigger' => false, 
    501502    ), 
  • trunk/src/wp-admin/js/post.js

    r29049 r29117  
    10101010        // No point for touch devices 
    10111011        if ( ! $textarea.length || 'ontouchstart' in window ) { 
     1012            // Hide the resize handle 
     1013            $('#content-resize-handle').hide(); 
    10121014            return; 
    10131015        } 
Note: See TracChangeset for help on using the changeset viewer.