Opened 12 years ago
Last modified 12 years ago
#10359 confirmed Bug
[Webkit] Extra and inline styles when copying and pasting aligned text
Reported by: | Olek Nowodziński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Pasting | Version: | 3.0 |
Keywords: | Webkit VendorFix | Cc: |
Description
Follow the cases below. Set initial data on the editor, then C-a, C-c, C-v and get data.
- Tested in latest Chrome (26.0.1410.63), Webkit 537.31
- Note that
s are displayed always regardless of the alignment.
- Related ticket: #9998
replacebycode (extra , inline style on <a>
)
Initial data:
<p style="text-align:right">This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
After copy and paste:
<p style="text-align:right">This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/" style="text-align: right;">CKEditor</a>.</p>
outputhtml (extra )
Initial data:
<p align="right">This is some <b>sample text</b>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
After copy and paste:
<p align="right">This is some <b>sample text</b>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
Change History (2)
comment:1 Changed 12 years ago by
Keywords: | Webkit added |
---|---|
Version: | 4.1.1 (GitHub - master) → 3.0 |
comment:2 Changed 12 years ago by
Keywords: | VendorFix added |
---|---|
Status: | new → confirmed |
I'm confirming this issue however I'm marking it as VendorFix as this is browser Problem/feature.
Like I said before:
- Open Page with contenteditable div and below code inside
{{{<p style="text-align:right">This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p> }}}
- Select it and copy/paste with Ctrl+c/Ctrl+v
- Inspect with WebTools.
Problem can be reproduced from CKEditor 3.0. If you however do the same test in plain contenteditable div and inspect source you will notice that browser does this by default.