[wp-trac] [WordPress Trac] #29430: Pressing tab to indent a list in Visual Editor causes focus to leave editor

WordPress Trac noreply at wordpress.org
Fri Aug 29 15:18:11 UTC 2014


#29430: Pressing tab to indent a list in Visual Editor causes focus to leave editor
--------------------------+-----------------------------
 Reporter:  Ipstenu       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  3.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Source: [https://wordpress.org/support/topic/pressing-tab-in-tinymce-
 indents-lists-and-then-leaves-the-field?replies=1&view=all 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 [https://vimeo.com/104661099 3.9 version] and
 the [https://vimeo.com/104661098 4.0 version]

 '''Steps to reproduce'''

 1. Create a new post
 2. Press the ordered or unordered list button
 3. Type a word
 4. Press enter
 5. 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29430>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list