Editor scrolling:

* Make sure the background color for tools is only applied to the main editor.
* Fix toolbar width for smaller screens.
* Ensure toolbar doesn't end up in a weird place when scrolling down too fast.
* Avoid JS errors for post types that don't support the editor.

props avryl. see #28328.


git-svn-id: https://develop.svn.wordpress.org/trunk@29075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi
2014-07-10 19:35:32 +00:00
parent 12204b379a
commit e4f0744b8e
4 changed files with 8 additions and 12 deletions
+4 -1
View File
@@ -11,7 +11,10 @@ if ( !defined('ABSPATH') )
die('-1');
wp_enqueue_script('post');
wp_enqueue_script('editor-expand');
if ( post_type_supports( $post_type, 'editor' ) ) {
wp_enqueue_script('editor-expand');
}
if ( wp_is_mobile() )
wp_enqueue_script( 'jquery-touch-punch' );