[wp-trac] [WordPress Trac] #28595: wpviews: "catch" the cursor and create a fake cursor so that the "cursor" can be set on either side of the view

WordPress Trac noreply at wordpress.org
Fri Jul 4 03:58:22 UTC 2014


#28595: wpviews: "catch" the cursor and create a fake cursor so that the "cursor"
can be set on either side of the view
--------------------------+------------------------------
 Reporter:  avryl         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+------------------------------

Comment (by azaozz):

 In [changeset:"28994"]:
 {{{
 #!CommitTicketReference repository="" revision="28994"
 TinyMCE: improve the way wpViews work. Add two paragraphs and capture the
 caret in them on clicking before/after/left/right of a view or moving the
 caret with the arrow keys, then show a "fake" caret.

 This makes it much more "natural" to move the caret with the arrow keys
 and to add paragraphs before a view when it is the first element or after
 a view when it's last.

 Props avryl, see #28595.
 }}}

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


More information about the wp-trac mailing list