Ticket #508 (closed defect: wontfix)
IE inserts unnecessary font tags on paste within editor
| Reported by: | wreimer@… | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hi, I've been working with HTMLArea for some time and have also contributed to Xinha anonymously. I have an issue that still shows up in Xinha but not as badly as in my version. In my case, IE inserts font tags which either unnecessarily reproduce or override classes or style attributes when copying and pasting within the editor. The worst offender is copying a simple link:
<a href="">link text</a>
becomes
<a href=""><font color="#0000ff">link text</font></a>
This doesn't seem to happen in Xinha, but I can't figure out what you did to fix it. Can anyone help me? AFAIK this is a recent IE bug, maybe with XP SP2.
Xinha still has this issue with other cut and paste operations. In the Xinha example, select some text and apply the .bluetext class, then copy that text along with some non-styled text, and this is what happens:
<span class="bluetext">Curabitur </span>tristique ante
becomes
<font color="#000000"><span class="bluetext">Curabitur </span>tristique ante</font>
Thanks,
Wes
