place the cursor at the start of the editing area
this.focus(); //see comments in placeCursorAtEnd var isvalid=false; if(dojo.isMoz){ var first=this.editNode.firstChild; while(first){ if(first.nodeType == 3){ if(first.nodeValue.replace(/^\s+|\s+$/g, "").length>0){ isvalid=true; dojo.withGlobal(this.window, "selectElement", dijit._editor.selection, [first]); break; } }else if(first.nodeType == 1){ isvalid=true; dojo.withGlobal(this.window, "selectElementChildren",dijit._editor.selection, [first]); break; } first = first.nextSibling; } }else{ isvalid=true; dojo.withGlobal(this.window, "selectElementChildren",dijit._editor.selection, [this.editNode]); } if(isvalid){ dojo.withGlobal(this.window, "collapse", dijit._editor.selection, [true]); }