From 01da3522f6c7ee07e67b77c255492666e818ae03 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 9 Apr 2015 00:10:23 +0000 Subject: [PATCH] TinyMCE: disable the wp-autoresize plugin in iOS. All iframes there are already expanded to the height of the content document. Fixes #31937. git-svn-id: https://develop.svn.wordpress.org/trunk@32095 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js b/src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js index 38ee2f8ed3..98905f6478 100644 --- a/src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js @@ -25,12 +25,12 @@ tinymce.PluginManager.add( 'wpautoresize', function( editor ) { oldSize = 300, isActive = false; - function isFullscreen() { - return editor.plugins.fullscreen && editor.plugins.fullscreen.isFullscreen(); + if ( editor.settings.inline || tinymce.Env.iOS ) { + return; } - if ( editor.settings.inline ) { - return; + function isFullscreen() { + return editor.plugins.fullscreen && editor.plugins.fullscreen.isFullscreen(); } function getInt( n ) {