Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6838 closed Bug (invalid)

Applying formats should take <br> tags into account

Reported by: Lynne Kues Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.4.2
Keywords: IBM Cc:

Description

Open the attached file. Select all, copy, paste into CKEditor.

FF

Select any line in the text. Apply a format. The entire pasted text gets the selected format. Only the selected line should get the selected format.

IE

Select the "Link types for extraction..." line in the text. Apply a format. The selected line, plus the two lines after it get the selected format. Only the selected line should get the selected format.

When applying formats, the editor should take <br> tags into account. This is the expected user behavior.

Attachments (1)

example.txt (570 bytes) - added by Lynne Kues 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Lynne Kues

Attachment: example.txt added

comment:1 Changed 8 years ago by Garry Yao

Resolution: invalid
Status: newclosed

When we're in paragraph enterMode, block format doesn't stop at br, also note line-breaks in plain text doesn't get mapped directly to paragraphs in wysiwgy, for that to happen, please use the "paste as plain text" button instead.

comment:2 in reply to:  1 Changed 8 years ago by Lynne Kues

Replying to garry.yao:

When we're in paragraph enterMode, block format doesn't stop at br, also note line-breaks in plain text doesn't get mapped directly to paragraphs in wysiwgy, for that to happen, please use the "paste as plain text" button instead.

From a format standpoint, I think the desired/expected behavior is to have the <br> tags (vs. having <br> tags changed to <p> tags).

I am confused about Paste as Plain Text. I thought this operations was for content with markup. I also do not understand why ctrl-v and Paste as Plain Text is operating differently on FF for the attached content. If I ctrl-v, the entire pasted content is treated as a paragraph. If I Paste as Plain Text, the pasted content is broken into a series of paragraphs (which is the more desired behavior). I think it is confusing to have to "Paste As Plain Text" text content.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy