Opened 11 years ago
Closed 11 years ago
#29430 closed defect (bug) (fixed)
Pressing tab to indent a list in Visual Editor causes focus to leave editor
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | TinyMCE | Keywords: | has-patch commit dev-reviewed |
Focuses: | Cc: |
Description
Source: Pressing tab in TinyMCE indents lists and then leaves the field
Credit: @chrisvendiadvertisingcom
In WordPress 4.0RC1, when writing a post with a list, both ordered or unordered, if you press tab the list gets indented (a child ol/ul is created) but then focus immediately leaves TinyMCE. In 3.9, at least in Chrome, tab didn't cause indentation, it just left the field.
Because the indentation happens it appears that you should be able to keep typing which, depending what keys you press, either starts editing the title or causes a draft to be saved.
Here's a video showing the 3.9 version and the 4.0 version
Steps to reproduce
- Create a new post
- Press the ordered or unordered list button
- Type a word
- Press enter
- Press tab
Behavior
List gets indented and then focus jumps to Save Draft button
Expected Behavior
List gets indented, focus remains in list
OR
List does not get indented and focus jumps to Save Draft button (3.9 behavior)
My thought is it should actually indent and focus stay on the list. It works like that on http://www.tinymce.com/ right now.
Attachments (1)
Change History (6)
#2
@
11 years ago
- Keywords has-patch commit added
- Milestone changed from Awaiting Review to 4.0
In 29430.patch: check if default is prevented on pressing tab, bind the events later so when other plugins (like 'lists' and 'table') use .preventDefault(), the 'tabfocus' plugin can "see" it.
Caused by the 'tabfocus' MCE plugin. Patch coming up.