aboutsummaryrefslogtreecommitdiff
path: root/js/clipboard/internal-ops/elements-clipboard-agent.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/clipboard/internal-ops/elements-clipboard-agent.js')
-rw-r--r--js/clipboard/internal-ops/elements-clipboard-agent.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/clipboard/internal-ops/elements-clipboard-agent.js b/js/clipboard/internal-ops/elements-clipboard-agent.js
index 14984593..fa433a59 100644
--- a/js/clipboard/internal-ops/elements-clipboard-agent.js
+++ b/js/clipboard/internal-ops/elements-clipboard-agent.js
@@ -141,7 +141,7 @@ var ElementsClipboardAgent = exports.ElementsClipboardAgent = Montage.create(Com
141 } 141 }
142 }, 142 },
143 143
144 pasteFromCopy:{//todo: change to appropriate name 144 pasteFromCopy:{
145 value:function(){ 145 value:function(){
146 var i=0, j=0, 146 var i=0, j=0,
147 pastedElements = [],//array of te pastes clones - for selection 147 pastedElements = [],//array of te pastes clones - for selection
@@ -151,7 +151,7 @@ var ElementsClipboardAgent = exports.ElementsClipboardAgent = Montage.create(Com
151 151
152 this.pasteCounter++; 152 this.pasteCounter++;
153 153
154 //TODO: cleanse HTML 154 //cleanse HTML
155 155
156 for(j=0; j< this.copiedObjects.copy.length; j++){ 156 for(j=0; j< this.copiedObjects.copy.length; j++){
157 copiedElement = this.copiedObjects.copy[j]; 157 copiedElement = this.copiedObjects.copy[j];
@@ -229,9 +229,6 @@ var ElementsClipboardAgent = exports.ElementsClipboardAgent = Montage.create(Com
229 //build the computed style attribute 229 //build the computed style attribute
230 computedStyles = elem.ownerDocument.defaultView.getComputedStyle(elem); 230 computedStyles = elem.ownerDocument.defaultView.getComputedStyle(elem);
231 231
232 //todo: consider cleaning up the position data [or making position:relative with 0,0] from the computed styles,
233 // so that the object is pasted onto expernal applicaitons [like gmail] with no offset
234
235 for (i = 0; i < computedStyles.length; i++) { 232 for (i = 0; i < computedStyles.length; i++) {
236 stylePropertyName = computedStyles[i]; 233 stylePropertyName = computedStyles[i];
237 computedStylesStr = computedStylesStr + stylePropertyName + ":" + computedStyles.getPropertyValue(stylePropertyName) + ";"; 234 computedStylesStr = computedStylesStr + stylePropertyName + ":" + computedStyles.getPropertyValue(stylePropertyName) + ";";