[wp-trac] [WordPress Trac] #29571: Quicktag end tags appear after newline characters in text editor

WordPress Trac noreply at wordpress.org
Sun Sep 7 10:38:09 UTC 2014


#29571: Quicktag end tags appear after newline characters in text editor
----------------------------------------+-----------------------------
 Reporter:  JoshuaGoodwin               |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Editor                      |    Version:  3.9
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 In order to select a whole line of text in a textarea, it's often
 convenient to use the triple-click shortcut. In WebKit/Blink browsers, if
 the selected line of text is not the last line, the selection includes the
 newline character at the end. So when I click an editor quicktag button,
 the closing tag appears on the next line.

 This is perhaps best illustrated with a screencast:
 https://mediacru.sh/d6KyDiACDuri

 Instead, perhaps the closing tag should be inserted before the newline
 character.

 I've tested on using Chrome 37 on Windows and Linux, but it's a long-
 standing thing.

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


More information about the wp-trac mailing list