Ticket #656: insertNodeAtSelection.patch
| File insertNodeAtSelection.patch, 0.9 kB (added by mokhet, 6 years ago) |
|---|
-
htmlarea.js
2762 2762 /** Returns a node after which we can insert other nodes, in the current 2763 2763 * selection. The selection is removed. It splits a text node, if needed. 2764 2764 */ 2765 HTMLArea.prototype.insertNodeAtSelection = function(toBeInserted) {2766 if (!HTMLArea.is_ie) {2765 if (!HTMLArea.is_ie) { 2766 HTMLArea.prototype.insertNodeAtSelection = function(toBeInserted) { 2767 2767 var sel = this._getSelection(); 2768 2768 var range = this._createRange(sel); 2769 2769 // remove the current selection … … 2802 2802 this.updateToolbar(); 2803 2803 break; 2804 2804 } 2805 } else { 2805 }; 2806 } else { 2807 HTMLArea.prototype.insertNodeAtSelection = function(toBeInserted) { 2806 2808 return null; // this function not yet used for IE <FIXME> 2807 } 2809 }; 2808 2810 }; 2809 2811 2810 2812 // Returns the deepest node that contains both endpoints of the selection.
