#3481 closed Bug (fixed)
paste error IN Chrome
| Reported by: | toby941 | Owned by: | Martin Kou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6.5 |
| Component: | General | Version: | FCKeditor 2.6.4 |
| Keywords: | Confirmed WebKit Review+ | Cc: | toby941@… |
Description (last modified by )
- use chrome(version:1.0.154.36) 2.create a table
- paste something into table
- the format of the table is error
Attachments (3)
Change History (19)
comment:1 Changed 17 years ago by
| Cc: | toby941@… added |
|---|
comment:2 Changed 17 years ago by
| Keywords: | WorksForMe Pending added |
|---|
comment:3 Changed 17 years ago by
I use Chrome(2.0.168.0),on[ http://www.fckeditor.net/demo.] # click the insert table button,insert a table(default attribute ) # copy two letters,and then paste some times,the table format was break
comment:5 Changed 16 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
I'm not able to reproduce the bug as well. Closing as worksforme.
comment:6 Changed 16 years ago by
| Keywords: | Confirmed Chrome added; WorksForMe Pending removed |
|---|---|
| Resolution: | worksforme |
| Status: | closed → reopened |
Oh, I've just got the bug reproduced.
comment:7 Changed 16 years ago by
To reliably reproduce this bug:
- Open http://www.fckeditor.net/demo in Chome 2.
- Create a default table.
- Copy two letters from anywhere.
- Put caret to a table cell.
- Press Ctrl-V twice or more times.
The first Ctrl-V works, the second, third, ... Ctrl-V will paste the two letters outside of table cells.
comment:8 Changed 16 years ago by
| Keywords: | WebKit added; Chrome removed |
|---|
The same bug can also be reproduced in Safari 4 in Mac.
Changed 16 years ago by
| Attachment: | 3481.patch added |
|---|
comment:9 Changed 16 years ago by
| Keywords: | Review? added |
|---|
comment:10 Changed 16 years ago by
| Owner: | set to Martin Kou |
|---|---|
| Status: | reopened → new |
comment:11 Changed 16 years ago by
| Status: | new → assigned |
|---|
comment:12 Changed 16 years ago by
| Keywords: | Review- added; Review? removed |
|---|
When you looked into the DOM after pasted:
<td><span class="Apple-style-span"
style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; ">sa</span>{ZWNBSP}
</td>
You'll notice that the second ZWNBSP is still there, the removing of this node has failed, don't know why.
Changed 16 years ago by
| Attachment: | 3481_2.patch added |
|---|
comment:13 Changed 16 years ago by
| Keywords: | Review? added; Review- removed |
|---|
Something in the browser's paste logic seems to be merging the text nodes, and even worse, even if I use inline tags like <b> and <span> it would get merged too. I've found that Safari doesn't merge <a> tags but it would still clone it (i.e. the original DOM node reference we've got becomes invalid). So I've assigned an id to the <a> dummy to keep track of it.
comment:14 Changed 16 years ago by
| Keywords: | Review+ added; Review? removed |
|---|
comment:15 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed with [3973].
Click here for more info about our SVN system.

I was unable to reproduce this bug on http://www.fckeditor.net/demo.
Could you tell me what did you paste?