mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user