Fix whitespace, quotes and double patch content in wpautoresize plugin, see #28328

git-svn-id: https://develop.svn.wordpress.org/trunk@29050 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2014-07-09 22:42:28 +00:00
parent 14d1e57e99
commit ccef0ae5f0
2 changed files with 28 additions and 191 deletions

View File

@@ -1,3 +1,4 @@
/* global tinymce */
window.wp = window.wp || {};
@@ -15,14 +16,13 @@ jQuery( document ).ready( function($) {
$bottom = $( '#post-status-info' ),
$statusBar,
buffer = 200,
adjust,
fullscreen = window.wp.editor && window.wp.editor.fullscreen,
editorInstance,
fixedTop = false,
fixedBottom = false;
$textEditorClone.insertAfter( $textEditor );
// use to enable/disable
$contentWrap.addClass( 'wp-editor-expand' );
$( '#content-resize-handle' ).hide();
@@ -306,7 +306,7 @@ jQuery( document ).ready( function($) {
borderTop: 'none',
width: $editor.parent().width() - ( $top.outerWidth() - $top.width() )
} );
$tools.css( {
position: 'absolute',
top: 0,
@@ -322,14 +322,14 @@ jQuery( document ).ready( function($) {
top: window.pageYOffset - $editor.offset().top + adminBarHeight + $tools.outerHeight(),
borderTop: 'none'
} );
$tools.css( {
position: 'absolute',
top: window.pageYOffset - $contentWrap.offset().top + adminBarHeight,
borderTop: 'none',
width: $contentWrap.width()
} );
}
}
}
// Maybe adjust the bottom bar.