Opened 9 years ago

Last modified 9 years ago

#12764 confirmed Bug

Pasting pure text in Chrome causes weird results — at Initial Version

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 4.0
Keywords: Support Cc: mike@…

Description

  1. Open a sample with ACF disabled (e.g. the magicline sample).
  1. Paste the following in source mode:
<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
  <tbody>
    <tr>
      <td style="color: #5f2351; font-size: 18pt;">
        Hello &amp; welcome to K-talk
      </td>
    </tr>
  </tbody>
</table>
  1. Switch to WYSIWYG mode.
  1. Copy "Test paste" string from some plain text editor (e.g. Notepad on Windows)
  1. Place the cursor at the end of the text and press the keyboard shortcut to paste (CTRL + V).
  1. The result is (wrong):
    <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
      <tbody>
        <tr>
          <td style="color: #5f2351; font-size: 18pt;">
            <font color="#666666">
              <span style="font-size:10px">
                Hello &amp; welcome to K-talk
              </span>
            </font>
            Test paste
          </td>
        </tr>
      </tbody>
    </table>
    
  1. However, if you paste the same content using the "Paste" button in CKEditor, the result is different (correct!):
    <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
      <tbody>
        <tr>
          <td style="color: #5f2351; font-size: 18pt;">
            Hello &amp; welcome to K-talkTest paste
          </td>
        </tr>
      </tbody>
    </table>
    

Change History (4)

Changed 9 years ago by Wiktor Walc

Attachment: step3.png added

Changed 9 years ago by Wiktor Walc

Attachment: step6.png added

Changed 9 years ago by Wiktor Walc

Attachment: step7.png added

Changed 9 years ago by Wiktor Walc

Attachment: example.mov added
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