[wp-trac] [WordPress Trac] #31661: Quicktags: Can't add them using just a keyboard in IE

WordPress Trac noreply at wordpress.org
Fri Mar 27 13:11:46 UTC 2015


#31661: Quicktags: Can't add them using just a keyboard in IE
----------------------------------+----------------------------------------
 Reporter:  Cheffheid             |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Editor                |     Version:  4.1
 Severity:  normal                |  Resolution:
 Keywords:  has-patch needs-      |     Focuses:  accessibility, javascript
  testing                         |
----------------------------------+----------------------------------------

Comment (by afercia):

 Replying to [comment:12 Cheffheid]:
 > I think this'll do it. Not quite the same logic as you suggest, but it's
 similar I guess.
 Hi Cheffheid, yup it's similar
 > with a snippet I had found in bookmarklet.js.
 BTW it's a different case because in bookmarklet.js `getSelection()` is
 used to get the selection on the "page" while when it comes to input
 fields and textareas `getSelection()` might not work. Moreover, to my
 understanding the selection won't be "remembered" when blurring the
 textarea, while modern browser should "remember" `selectionStart` and
 `selectionEnd` because they're properties. See you on Slack, would like to
 discuss a bit this with you :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31661#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list