[wp-trac] [WordPress Trac] #33712: Press This: Multiple paragraphs in source text are quoted as a single paragraph
WordPress Trac
noreply at wordpress.org
Thu Oct 1 02:42:49 UTC 2015
#33712: Press This: Multiple paragraphs in source text are quoted as a single
paragraph
--------------------------+------------------------------
Reporter: rachelmcr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Press This | Version: 4.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+------------------------------
Changes (by kraftbj):
* keywords: => needs-patch
* focuses: => javascript
* version: 4.3 => 4.2
Comment:
For a JS wizard, this is coming from the bookmarklet
https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
admin/js/bookmarklet.js#L24
We're using `window.getSelection` right now. I think we could use
`Range.toString()` to preserve line breaks?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33712#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list