Make WordPress Core

Changeset 22606


Ignore:
Timestamp:
11/16/2012 12:34:07 AM (12 years ago)
Author:
azaozz
Message:

Editor: disable the textarea resizing handle on touch devices (cannot be used there), don't save TinyMCE's height in iOS as the user cannot set/change it there (it expands the iframe to full height), see #21718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r22442 r22606  
    620620    (function() {
    621621        var textarea = $('textarea#content'), offset = null, el;
     622        // No point for touch devices
     623        if ( 'ontouchstart' in window )
     624            return;
    622625
    623626        function dragging(e) {
     
    651654    if ( typeof(tinymce) != 'undefined' ) {
    652655        tinymce.onAddEditor.add(function(mce, ed){
    653             if ( ed.id != 'content' )
     656            // iOS expands the iframe to full height and the user cannot adjust it.
     657            if ( ed.id != 'content' || tinymce.isIOS5 )
    654658                return;
    655659
Note: See TracChangeset for help on using the changeset viewer.