+ /**\r
+ * Retrieves the text contained within the range, empty string is returned for non-text selection.\r
+ * @returns {String} string of text within the current selection.\r
+ * @since 3.6.1\r
+ * @example\r
+ * var text = editor.getSelectedText();\r
+ * alert( text );\r
+ */\r
+ getSelectedText : function()\r
+ {\r
+ var cache = this._.cache;\r
+ if ( cache.selectedText !== undefined )\r
+ return cache.selectedText;\r
+\r
+ var text = '',\r
+ nativeSel = this.getNative();\r
+ if ( this.getType() == CKEDITOR.SELECTION_TEXT )\r
+ text = CKEDITOR.env.ie ? nativeSel.createRange().text : nativeSel.toString();\r
+\r
+ return ( cache.selectedText = text );\r
+ },\r
+\r