function onCopySpecial() { var event = shell.currentEvent; if (event) { var factory = shell.factory; var clipboard = (factory) ? factory.createTransferData() : null; if (clipboard) { // Get dhtml editor. var editor = scene.getBoxById("editor"); if (editor) { var text = editor.htmlSelection; clipboard.addString("text/plain", text); shell.clipboard = clipboard; } } event.stopPropagation(); } }