#13900 closed defect (invalid)
Dijit Editor selectall copies extra tags into the clipboard on Chrome
Reported by: | daming | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Editor | Version: | 1.6.1 |
Keywords: | Editor selectall multiple scrollbar | Cc: | |
Blocked By: | Blocking: |
Description
The copy and paste after select all introduces extra <span> and <div> tags which causes multiple scroll bars in the editor.
This happens only on Chrome, not on Firefox or IE. Chrome: 13.0.782.107 FF: 6.0.2(Linux), 3.6.18(Windows)
To reproduce:
- Go to http://dojotoolkit.org/widgets
- Click the Editor tab.
- In the Enabled editor, add multiple lines to the end of the content so the scrollbar shows.
- Press Ctrl+A to select all contents and then Ctrl+C and copy them into the clipboard.
- Press Ctrl+V.
Notice the multiple scrollbars at the right side of the editor. If you inspect the element, you will find the following wrapper tags are added:
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; "><div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; padding-top: 1px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: -1px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; width: 100%; height: 100%; top: 0px; left: 0px; right: 0px; font: normal normal normal 10px/normal 'Lucida Sans', 'Lucida Grande', Arial; min-height: 1em; line-height: normal; overflow-x: auto; overflow-y: auto; color: rgb(51, 51, 51); background-position: initial initial; background-repeat: initial initial; "><ul><li>Lorem <a href="http://dojotoolkit.org/" _djrealurl="http://dojotoolkit.org">and a link</a>, what do you think?</li><li>This is the Editor with a Toolbar attached.</li></ul><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>a</div></div></span>
Change History (2)
comment:1 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 9 years ago by
Also, how the browser interprets a paste is also a browser-native operation. JavaScript? cannot intercept it. This bug needs to be reported to Chrome, not dojo.
Copy to clipboard is a native browser operation, it isn't controlled by editor (nor can it be). JavaScript? cannot access the clipboard directly. Please open a bug with Chrome. Closing this one as invalid.