Opened 14 years ago

Closed 14 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 14 years ago by Garry Yao

Resolution: invalid
Status: newclosed

It depends on your "config.enterMode" actually, with 'CKEDITOR.ENTER_BR' you should be able to get the desired result.

comment:2 Changed 14 years ago by Shaun

I'm not trying to make it insert <br /> tags. I'm trying to get it not to insert them.

comment:3 in reply to:  2 Changed 14 years ago by Garry Yao

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 14 years ago by Shaun

Resolution: invalid
Status: closedreopened

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 14 years ago by Garry Yao

Keywords: Pending added

WFM in trunk, by copying the above sample text from browser.

comment:6 Changed 14 years ago by Frederico Caldeira Knabben

Keywords: Pending removed
Status: reopenedpending

comment:7 Changed 14 years ago by Frederico Caldeira Knabben

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy