Editor: When switching Editor tabs, don't scroll unnecessarily.

- When switching to the Text view, wait until after the Visual editor element has been hidden, before focussing the `<textarea>`.
- When switching to the Visual view, only scroll if the cursor is not visible on the current screen.

Fixes #42530.


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


git-svn-id: http://core.svn.wordpress.org/trunk@42005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast
2017-11-14 05:19:49 +00:00
parent 54a2c0dd1f
commit 5dab6b6e61
3 changed files with 9 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42173';
$wp_version = '5.0-alpha-42175';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.