Opened 13 years ago

Closed 12 years ago

#8834 closed New Feature (fixed)

Use HTML paste bin for Paste as Plain Text

Reported by: Frederico Caldeira Knabben Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.0
Keywords: Cc: satya_minnekanti@…

Description

We're currently using a <textarea> to catch pasted data for the Paste as Plain Text feature. This makes our life easier, because the "some format" to text conversion is done by the source application and the browser.

The problem is that we're having lost of data in that operation. I'm attaching a document, which shows an example of this problem.

If we paste that document into a contenteditable element, we have the following HTML available:

<p class="MsoNormal">Line 1<br>
Line 2</p>
<p class="MsoNormal">Line 3</p>
<p class="MsoNormal">Line 4</p>

If we do so in a <textearea>, we have this instead:

Line 1
Line 2
Line 3
Line 4

As we can see, it is impossible to understand that we have different line-breaks in the document, as well as to precisely enclose paragraphs.

Ideally, we should use a contenteditable element as the paste bin, extracting plain text out of it by ourselves, keeping structural elements that are interesting for us.

Attachments (1)

8834_Sample.docx (9.7 KB) - added by Frederico Caldeira Knabben 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Frederico Caldeira Knabben

Attachment: 8834_Sample.docx added

comment:1 Changed 13 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:2 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.0

Confirmed.

Is this feature a proposed solution for fixing E.g. #7622, #7146, #6436, #6131 which were targeted for v4?

comment:3 Changed 12 years ago by Piotrek Koszuliński

Resolution: fixed
Status: confirmedclosed

This feature has been introduced by CKEditor 4.0.

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