Ticket #29307: 29307.patch
File 29307.patch, 1.7 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-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
108 108 // Resize content element 109 109 if (resizeHeight !== oldSize) { 110 110 deltaSize = resizeHeight - oldSize; 111 console.log( resizeHeight, oldSize, parseInt( DOM.getStyle( editor.iframeElement, 'height', true ), 10 ) ); 111 112 DOM.setStyle( editor.iframeElement, 'height', resizeHeight + 'px' ); 112 113 oldSize = resizeHeight; 113 114