Author: simoneg
Date: Mon Jan 25 11:01:41 2010
New Revision: 902777

URL: http://svn.apache.org/viewvc?rev=902777&view=rev
Log:
Catch last keypress

Modified:
    
labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js

Modified: 
labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js
URL: 
http://svn.apache.org/viewvc/labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js?rev=902777&r1=902776&r2=902777&view=diff
==============================================================================
--- 
labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js
 (original)
+++ 
labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js
 Mon Jan 25 11:01:41 2010
@@ -411,12 +411,14 @@
                                setTimeout(dojo.hitch(this, 
function(){ed.focus();}), 100);
                                dojo.stopEvent(e);
                        } else {
-                               // Auto save when in text area mode
-                               html = this.sourceArea.value;
-                               html = this._filter(html);
-                               ed.attr("value", html);                         
                        }
                }));
+               this.connect(this.sourceArea, "onkeyup", dojo.hitch(this, 
function(e){
+                       // Auto save when in text area mode
+                       html = this.sourceArea.value;
+                       html = this._filter(html);
+                       ed.attr("value", html);                         
+               }));            
        },
 
        _stripScripts: function(html){



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to