Changes between Initial Version and Version 5 of Ticket #6131


Ignore:
Timestamp:
May 2, 2012, 1:31:04 PM (12 years ago)
Author:
Jakub Ś
Comment:

This is Webkit pasting problem and also our problem.

When you paste something from Notepad in Webkit or when you paste HTML it gets wrapped in Divs. When you have your enter mode set to default ENTER_P (paragraph) those Divs get pasted inside this paragraph.
This can be confirmed when looking at elements path and when viewing the code with Chrome developer tools (Please check the attached screen.png)
This invalid code gets fixed when switching to source or getting the data from editor (when HTML data processor is called). That is why users get impression that extra p is added.

NOTE: This will be fixed in version 4 of editor which will soon be introduced.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6131

    • Property Status changed from new to confirmed
    • Property Cc t.lehmann@… added
    • Property Component changed from General to Core : Pasting
    • Property Version changed from 3.4.1 to 3.0
    • Property Keywords WebKit added
  • Ticket #6131 – Description

    initial v5  
    2222  Line Two</div>
    2323}}}
     24
     25**Update:** [[BR]]
     26* FF3, FF4, Opera - use br to keep formatting. This is from CKEditor 3.0
     27* Webkit uses divs to keep formatting. This is from CKEditor 3.2.1
     28* IE (all versions) use <p> tags for pasted text.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy