Opened 9 years ago
Last modified 9 years ago
#13583 closed Bug
dataTransfer.getData() should return content within <body> — at Initial Version
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.2 |
Component: | Core : Pasting | Version: | 4.5.0 |
Keywords: | Cc: |
Description
Currently two things are done:
- <meta> tag is removed,
- only content within
<!--StartFragment-->
and<!--EndFragment-->
is returned.
Both things happen only on Chrome and Windows is mentioned in comments and both these things are wrong.
Expected result:
- <meta> tag is removed on all browsers. It's not necessarily just Chrome (as well as Start/EndFrag comments) thing and nothing bad will happen if we remove it.
- Only content within
<body>
tags should be returned. We noticed that sometimes valuable tags are outside of StartEndFrag comments (e.g. when pasting from Excel). What's more – sometimes these comments do not exist (e.g. when pasting from Pages or Preview), because they are Windows thing, but content still contains full HTML with<body>
and<head>
. Note -<body>
may have attributes. Finally, this must be done again on all browsers. Firefox on Mac yields exactly the same content as Chrome and I presume that it will be a thing on Windows soon too.