diff --git a/core/selection.js b/core/selection.js index 34797ff9427..ca25310338a 100644 --- a/core/selection.js +++ b/core/selection.js @@ -1597,37 +1597,6 @@ return ( cache.selectedText = text ); }, - /** - * Retrieves the HTML contained within the range. If selection - * contains multiple ranges method will return concatenation of HTMLs from ranges. - * - * var text = editor.getSelection().getSelectedText(); - * alert( text ); - * - * @since 4.4 - * @returns {String} A string of HTML within the current selection. - */ - getSelectedHtml: function() { - var nativeSel = this.getNative(); - - if ( this.isFake ) { - return this.getSelectedElement().getHtml(); - } - - if ( nativeSel && nativeSel.createRange ) - return nativeSel.createRange().htmlText; - - if ( nativeSel.rangeCount > 0 ) { - var div = document.createElement( 'div' ); - - for ( var i = 0; i < nativeSel.rangeCount; i++ ) { - div.appendChild( nativeSel.getRangeAt( i ).cloneContents() ); - } - return div.innerHTML; - } - return ''; - }, - /** * Locks the selection made in the editor in order to make it possible to * manipulate it without browser interference. A locked selection is