Ticket #29307: 29307.4.patch
File 29307.4.patch, 2.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/edit-form-advanced.php
496 496 'dfw' => true, 497 497 'drag_drop_upload' => true, 498 498 'tabfocus_elements' => 'insert-media-button-1,save-post', 499 'editor_height' => 3 60,499 'editor_height' => 300, 500 500 'tinymce' => array( 501 501 'resize' => false, 502 502 'wp_autoresize_on' => ( ! empty( $_wp_autoresize_on ) && get_user_setting( 'editor_expand', 'on' ) === 'on' ), -
src/wp-admin/js/editor-expand.js
34 34 pageYOffsetAtTop = 130, 35 35 pinnedToolsTop = 56, 36 36 autoresizeMinHeight = 300, 37 initialMode = window.getUserSetting( 'editor' ), 37 38 // These are corrected when adjust() runs, except on scrolling if already set. 38 39 heights = { 39 40 windowHeight: 0, … … 119 120 } 120 121 121 122 function textEditorResize() { 122 if ( mceEditor && ! mceEditor.isHidden() ) {123 if ( ( mceEditor && ! mceEditor.isHidden() ) || ( ! mceEditor && initialMode === 'tinymce' ) ) { 123 124 return; 124 125 } 125 126 -
src/wp-includes/class-wp-editor.php
112 112 if ( empty( $set['editor_height'] ) ) 113 113 return $set; 114 114 115 if ( 'content' === $editor_id ) {115 if ( 'content' === $editor_id && empty( $set['tinymce']['wp_autoresize_on'] ) ) { 116 116 // A cookie (set when a user resizes the editor) overrides the height. 117 117 $cookie = (int) get_user_setting( 'ed_size' ); 118 118 -
src/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js
22 22 */ 23 23 tinymce.PluginManager.add( 'wpautoresize', function( editor ) { 24 24 var settings = editor.settings, 25 oldSize = 0,25 oldSize = 300, 26 26 isActive = false; 27 27 28 28 function isFullscreen() {