skeleton/public/javascripts/lib/cleditor/jquery.cleditor.js
function selectedHTML(editor) {
    restoreRange(editor);
    var range = getRange(editor);
    if (ie)
      return range.htmlText;
    var layer = $("<layer>")[0];
    layer.appendChild(range.cloneContents());
    var html = layer.innerHTML;
    layer = null;
    return html;
  }
function selectedHTML(editor) {
    restoreRange(editor);
    var range = getRange(editor);
    if (ie)
      return range.htmlText;
    var layer = $("<layer>")[0];
    layer.appendChild(range.cloneContents());
    var html = layer.innerHTML;
    layer = null;
    return html;
  }
function selectedHTML ( editor ) { restoreRange ( editor ) ; var range = getRange ( editor ) ; if ( ie ) return range . htmlText ; var layer = $ ( "<layer>" ) [ 0 ] ; layer . appendChild ( range . cloneContents ( ) ) ; var html = layer . innerHTML ; layer = null ; return html ; }
selectedHTML - returns the current HTML selection or and empty string
selectedHTML - returns the current HTML selection or and empty string