| 
					
				 | 
			
			
				@@ -51,6 +51,13 @@ SC.loadPackage({ 'TextEditor': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 SuperGlue.get('selection').do('clearAll'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                (function(elementNode){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    var textContent = elementNode.innerHTML; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    SuperGlue.get('history').do('actionHasStarted', function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        elementNode.innerHTML = textContent; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).call(this, this.get('originalElementNode')); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // Prepare textEditor's div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 /* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 textEditor.setAttribute('id', 'sg-editing-textEditor'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -123,16 +130,16 @@ SC.loadPackage({ 'TextEditor': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 textEditorContainer.addEventListener('mouseup', function(evt){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    self.do('closeTextEditor'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     evt.stopPropagation(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 textEditorContainer.addEventListener('mousedown', function(evt){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    self.do('closeTextEditor'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     evt.stopPropagation(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 document.body.insertBefore( 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -322,6 +329,14 @@ SC.loadPackage({ 'TextEditor': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                (function(elementNode){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    var textContent = elementNode.innerHTML; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    SuperGlue.get('history').do('actionHasSucceeded', function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        elementNode.innerHTML = textContent; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).call(this, this.get('originalElementNode')); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |