Changeset 171
- Timestamp:
- 05/18/05 19:06:18 (8 years ago)
- Files:
-
- 1 modified
-
trunk/htmlarea.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r170 r171 3833 3833 HTMLArea.prototype.ie_checkBackspace = function() { 3834 3834 var sel = this._getSelection(); 3835 if(HTMLArea.is_ie && sel.type == 'Control') 3836 { 3837 var elm = this._activeElement(sel); 3838 elm.parentNode.removeChild(elm); 3839 return true; 3840 } 3841 3842 // This bit of code preseves links when you backspace over the 3843 // endpoint of the link in IE. Without it, if you have something like 3844 // link_here | 3845 // where | is the cursor, and backspace over the last e, then the link 3846 // will de-link, which is a bit tedious 3835 3847 var range = this._createRange(sel); 3836 3837 // the selection must contain at least some text3838 if (range.text == "undefined") return true;3839 3840 // to remove a link (should be done like this?)3841 3848 var r2 = range.duplicate(); 3842 3849 r2.moveStart("character", -1);
