You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2010/01/25 12:01:42 UTC
svn commit: r902777 -
/labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js
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: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org