skeleton/public/javascripts/lib/cleditor/jquery.cleditor.js
function execCommand(editor, command, value, useCSS, button) {

    // Restore the current ie selection
    restoreRange(editor);

    // Set the styling method
    if (!ie) {
      if (useCSS === undefined || useCSS === null)
        useCSS = editor.options.useCSS;
      editor.doc.execCommand("styleWithCSS", 0, useCSS.toString());
    }

    // Execute the command and check for error
    var success = true, description;
    if (ie && command.toLowerCase() == "inserthtml")
      getRange(editor).pasteHTML(value);
    else {
      try { success = editor.doc.execCommand(command, 0, value || null); }
      catch (err) { description = err.description; success = false; }
      if (!success) {
        if ("cutcopypaste".indexOf(command) > -1)
          showMessage(editor, "For security reasons, your browser does not support the " +
            command + " command. Try using the keyboard shortcut or context menu instead.",
            button);
        else
          showMessage(editor,
            (description ? description : "Error executing the " + command + " command."),
            button);
      }
    }

    // Enable the buttons
    refreshButtons(editor);
    return success;

  }
function execCommand(editor, command, value, useCSS, button) {

    // Restore the current ie selection
    restoreRange(editor);

    // Set the styling method
    if (!ie) {
      if (useCSS === undefined || useCSS === null)
        useCSS = editor.options.useCSS;
      editor.doc.execCommand("styleWithCSS", 0, useCSS.toString());
    }

    // Execute the command and check for error
    var success = true, description;
    if (ie && command.toLowerCase() == "inserthtml")
      getRange(editor).pasteHTML(value);
    else {
      try { success = editor.doc.execCommand(command, 0, value || null); }
      catch (err) { description = err.description; success = false; }
      if (!success) {
        if ("cutcopypaste".indexOf(command) > -1)
          showMessage(editor, "For security reasons, your browser does not support the " +
            command + " command. Try using the keyboard shortcut or context menu instead.",
            button);
        else
          showMessage(editor,
            (description ? description : "Error executing the " + command + " command."),
            button);
      }
    }

    // Enable the buttons
    refreshButtons(editor);
    return success;

  }
function execCommand ( editor , command , value , useCSS , button ) { // Restore the current ie selection
 restoreRange ( editor ) ; // Set the styling method
 if ( ! ie ) { if ( useCSS === undefined || useCSS === null ) useCSS = editor . options . useCSS ; editor . doc . execCommand ( "styleWithCSS" , 0 , useCSS . toString ( ) ) ; } // Execute the command and check for error
 var success = true , description ; if ( ie && command . toLowerCase ( ) == "inserthtml" ) getRange ( editor ) . pasteHTML ( value ) ; else { try { success = editor . doc . execCommand ( command , 0 , value || null ) ; } catch ( err ) { description = err . description ; success = false ; } if ( ! success ) { if ( "cutcopypaste" . indexOf ( command ) > - 1 ) showMessage ( editor , "For security reasons, your browser does not support the " + command + " command. Try using the keyboard shortcut or context menu instead." , button ) ; else showMessage ( editor , ( description ? description : "Error executing the " + command + " command." ) , button ) ; } } // Enable the buttons
 refreshButtons ( editor ) ; return success ; }
execCommand - executes a designMode command
execCommand - executes a designMode command