[Dojo-checkins] bill - r18452 - dijit/trunk/_editor

dojo-checkins-admin at dojotoolkit.org dojo-checkins-admin at dojotoolkit.org
Sun Jun 28 19:42:12 EDT 2009


Author: bill
Date: Sun Jun 28 16:42:07 2009
New Revision: 18452

Modified:
   dijit/trunk/_editor/RichText.js
Log:
Make FF2 show cursor on blank editors, regressed in [18432], refs #9398 !strict.

Modified: dijit/trunk/_editor/RichText.js
==============================================================================
--- dijit/trunk/_editor/RichText.js	(original)
+++ dijit/trunk/_editor/RichText.js	Sun Jun 28 16:42:07 2009
@@ -675,7 +675,9 @@
 		this.attr('disabled', this.disabled); // initialize content to editable (or not)
 
 		// Note that setValue() call will only work after isLoaded is set to true (above)
-		this.setValue(html);
+		if(html){	// w/out this if() FF2 won't show cursor when editor is blank
+			this.setValue(html);
+		}
 		
 		if(this.onLoadDeferred){
 			this.onLoadDeferred.callback(true);


More information about the Dojo-checkins mailing list