Changeset 12747
- Timestamp:
- 02/27/08 15:29:13 (6 months ago)
- Location:
- dijit/trunk
- Files:
-
- 2 modified
-
tests/test_Editor.html (modified) (1 diff)
-
_editor/RichText.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/tests/test_Editor.html
r12703 r12747 64 64 <h2>Created from div</h2> 65 65 <div style="border: 1px solid black;"> 66 <div dojoType="dijit.Editor" id="editor1"><p>This instance is created from a div directly with default toolbar and plugins</p></div> 66 <div dojoType="dijit.Editor" id="editor1" 67 onChange="console.log('user onChange handler: ' + arguments[0])" 68 ><p>This instance is created from a div directly with default toolbar and plugins</p></div> 67 69 </div> 68 70 <button onClick="dijit.byId('editor1').destroy()">destroy</button> -
dijit/trunk/_editor/RichText.js
r12702 r12747 611 611 setDisabled: function(/*Boolean*/ disabled){ 612 612 if(dojo.isIE || dojo.isSafari || dojo.isOpera){ 613 this.editNode.contentEditable=!disabled; 613 if(dojo.isIE){ this.editNode.unselectable = "on"; } // prevent IE from setting focus 614 this.editNode.contentEditable=!disabled; 615 if(dojo.isIE){ 616 var _this = this; 617 setTimeout(function(){ _this.editNode.unselectable = "off"; }, 0); 618 } 614 619 }else{ //moz 615 620 if(disabled){ … … 680 685 681 686 if(this.focusOnLoad){ 682 this.focus();687 setTimeout(dojo.hitch(this, "focus"), 0); // have to wait for IE to set unselectable=off 683 688 } 684 689