skeleton/public/javascripts/lib/cleditor/jquery.cleditor.js
function disable(editor, disabled) {

    // Update the textarea and save the state
    if (disabled) {
      editor.$area.attr(DISABLED, DISABLED);
      editor.disabled = true;
    }
    else {
      editor.$area.removeAttr(DISABLED);
      delete editor.disabled;
    }

    // Switch the iframe into design mode.
    // ie6 does not support designMode.
    // ie7 & ie8 do not properly support designMode="off".
    try {
      if (ie) editor.doc.body.contentEditable = !disabled;
      else editor.doc.designMode = !disabled ? "on" : "off";
    }
    // Firefox 1.5 throws an exception that can be ignored
    // when toggling designMode from off to on.
    catch (err) {}

    // Enable or disable the toolbar buttons
    refreshButtons(editor);

  }
function disable(editor, disabled) {

    // Update the textarea and save the state
    if (disabled) {
      editor.$area.attr(DISABLED, DISABLED);
      editor.disabled = true;
    }
    else {
      editor.$area.removeAttr(DISABLED);
      delete editor.disabled;
    }

    // Switch the iframe into design mode.
    // ie6 does not support designMode.
    // ie7 & ie8 do not properly support designMode="off".
    try {
      if (ie) editor.doc.body.contentEditable = !disabled;
      else editor.doc.designMode = !disabled ? "on" : "off";
    }
    // Firefox 1.5 throws an exception that can be ignored
    // when toggling designMode from off to on.
    catch (err) {}

    // Enable or disable the toolbar buttons
    refreshButtons(editor);

  }
function disable ( editor , disabled ) { // Update the textarea and save the state
 if ( disabled ) { editor . $area . attr ( DISABLED , DISABLED ) ; editor . disabled = true ; } else { editor . $area . removeAttr ( DISABLED ) ; delete editor . disabled ; } // Switch the iframe into design mode.
 // ie6 does not support designMode.
 // ie7 & ie8 do not properly support designMode="off".
 try { if ( ie ) editor . doc . body . contentEditable = ! disabled ; else editor . doc . designMode = ! disabled ? "on" : "off" ; } // Firefox 1.5 throws an exception that can be ignored
 // when toggling designMode from off to on.
 catch ( err ) { } // Enable or disable the toolbar buttons
 refreshButtons ( editor ) ; }
disable - enables or disables the editor
disable - enables or disables the editor