code: function selectedText(editor) {
      restoreRange(editor);
      if (ie) return getRange(editor).text;
      return getSelection(editor).toString();
    }
docs: selectedText - returns the current text selection or and empty string