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/20 16:25:43 UTC
svn commit: r901234 -
/labs/magma/trunk/website-dojo-textareas-showsource/src/main/resources/dojo-1.3.0/dijit/_editor/plugins/ViewSource.js
Author: simoneg
Date: Wed Jan 20 15:25:43 2010
New Revision: 901234
URL: http://svn.apache.org/viewvc?rev=901234&view=rev
Log:
Autosave while editing HTML source
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=901234&r1=901233&r2=901234&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 Wed Jan 20 15:25:43 2010
@@ -410,6 +410,11 @@
this.button.attr("checked", false);
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);
}
}));
},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org