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.

Built from https://develop.svn.wordpress.org/trunk@29075


git-svn-id: http://core.svn.wordpress.org/trunk@28861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí
2014-07-10 19:36:15 +00:00
parent 41f71c7938
commit 1a8c136d33
11 changed files with 14 additions and 22 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' );