Opened 15 years ago
Closed 15 years ago
#5557 closed Bug (expired)
Paste as plain-text functionality
Reported by: | Shaun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Pasting | Version: | 3.2.1 |
Keywords: | Cc: |
Description
Currently, paragraphs are separated by two <br /> tags after you paste as plain-text.
It would be nice if
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras est felis, laoreet eu elementum nec, aliquet eget ligula.
was converted to
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p>Cras est felis, laoreet eu elementum nec, aliquet eget ligula.</p>
instead of
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br /> <br /> Cras est felis, laoreet eu elementum nec, aliquet eget ligula.
Change History (7)
comment:1 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 follow-up: 3 Changed 15 years ago by
I'm not trying to make it insert <br /> tags. I'm trying to get it not to insert them.
comment:3 Changed 15 years ago by
Replying to simshaun:
I'm not trying to make it insert <br /> tags. I'm trying to get it not to insert them.
Ok, with default config, the paste as plain text result in two paragraphs as you expected, am I wrong?
comment:4 Changed 15 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Right (you are wrong). With default config, the paste as plain text results in two blocks of text separated with 2 <br /> tags instead of 2 blocks of text each wrapped in paragraph tags.
comment:5 Changed 15 years ago by
Keywords: | Pending added |
---|
WFM in trunk, by copying the above sample text from browser.
comment:6 Changed 15 years ago by
Keywords: | Pending removed |
---|---|
Status: | reopened → pending |
comment:7 Changed 15 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
It depends on your "config.enterMode" actually, with 'CKEDITOR.ENTER_BR' you should be able to get the desired result.