[wp-trac] [WordPress Trac] #39337: TinyMCE: when a wpview is the last element, insert an empty paragraph (caret placeholder) under it

WordPress Trac noreply at wordpress.org
Wed Dec 28 05:03:50 UTC 2016


#39337: TinyMCE: when a wpview is the last element, insert an empty paragraph
(caret placeholder) under it
--------------------------+------------------
 Reporter:  azaozz        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8
Component:  TinyMCE       |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------

Comment (by azaozz):

 > ...better to keep "native" behaviour and place the caret after the
 block, where the user can press enter to create a new paragraph.

 Agreed. In 39337.2.patch: select the wpview node after inserting it, then
 collapse the selection. This places the caret after the wpview node. It
 also fixes the "half-selected" bug when the node is first in the body.

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


More information about the wp-trac mailing list