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