Opened 15 years ago
Closed 15 years ago
#10851 closed defect (bug) (fixed)
TinyMCE occasionally leaves junk behind when copy and pasting
Reported by: | Denis-de-Bernardy | Owned by: | azaozz |
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.8.4 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
such as:
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">pasted code goes here</div>
Change History (6)
#2
@
15 years ago
- Keywords reporter-feedback added
This is a workaround in TinyMCE for (older) browsers that don't have the onpaste event. The div should be removed on cleanup, can you see if it still happens in current trunk (TinyMCE 3.2.7).
#4
follow-up:
↓ 5
@
15 years ago
I experienced something maybe simlar while testing the stuff for #10252 . I'm using the svn version and potential latest browsers (which is a misleading argument by azaozz imho anyway) and the stuff still sticks in. crap left befind. I did not care because I thought this is just how things are done these ways.... .
#5
in reply to:
↑ 4
@
15 years ago
Replying to hakre:
I experienced something maybe similar...
Does it still happen after svn up? Any way to consistently reproduce?
(which is a misleading argument ...
The 'onpaste' event is supported in IE, Safari and Chrome, nearly there in FF 3.5, not supported in FF 2 and Opera (not sure about Opera 10) and partially supported in FF 3.0. Other browsers based on the same engines may support it too.
some code to fix it, in case there is any interest: