Changeset 860
- Timestamp:
- 06/25/07 19:34:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r834 r860 2844 2844 } catch (ex) {} 2845 2845 } 2846 else if ( !Xinha.is_gecko&& this._doc.body.contentEditable !== true )2846 else if ( Xinha.is_ie&& this._doc.body.contentEditable !== true ) 2847 2847 { 2848 2848 this._doc.body.contentEditable = true; 2849 2850 if (this._iframe.contentWindow.event.srcElement.tagName.toLowerCase() == 'html') // if clicked below the text (=body), the text cursor does not appear, see #1019 2851 { 2852 var r = this._doc.body.createTextRange(); 2853 setTimeout (function () { r.collapse(); r.select();},100); // won't do without timeout, dunno why 2854 } 2849 2855 } 2850 2856 … … 3135 3141 { 3136 3142 var editor=this; 3137 var doc=this._doc.getElementsByTagName("html")[0]; 3143 var doc = (Xinha.is_ie) ? this._doc.getElementsByTagName("html")[0] : this._doc; // #1019 Cusor not jumping to editable part of window when clicked in IE, see also #1039 3144 3138 3145 editor.whenDocReady( 3139 3146 function()
Note: See TracChangeset
for help on using the changeset viewer.