[wp-trac] [WordPress Trac] #42029: Editor: Improve keeping text selection between Visual and Text modes

WordPress Trac noreply at wordpress.org
Fri Sep 29 08:49:32 UTC 2017


#42029: Editor: Improve keeping text selection between Visual and Text modes
-------------------------+-----------------------------
 Reporter:  biskobe      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Editor       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  javascript   |
-------------------------+-----------------------------
 This patch is a continuation from #41962 / [41630].

 == What's new? ==
  * Shortcodes should no longer break when selecting them from text mode
 and switching to Visual mode.
  * No longer inserting empty paragraphs where the selection markers were,
 when going back and forth between Visual and Text modes.
  * Live Preview shortcodes should now be properly selected in Text mode,
 when they were selected in Visual mode.
 * Other general bug fixes and code improvements.

 == To test ==

 1. Apply patch
 2. Open the editor
 3. Add content, click around, select things
 4. Switch between modes
 5. Try adding embeds
 6. Try adding shortcodes

 Look for JS errors in the console, weird behavior, etc.

 == Feedback ==

 Please, add any feedback as a comment here or as a comment on the
 development PR, linked below.

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


More information about the wp-trac mailing list