tinymce.full.js
function (settings, callback) {
          if (typeof settings == "string") {
            settings = { text: settings };
          }

          settings.callback = callback;
          settings.buttons = MessageBox.OK_CANCEL;

          return MessageBox.msgBox(settings);
        }
function (settings, callback) {
          if (typeof settings == "string") {
            settings = { text: settings };
          }

          settings.callback = callback;
          settings.buttons = MessageBox.OK_CANCEL;

          return MessageBox.msgBox(settings);
        }
function ( settings , callback ) { if ( typeof settings == "string" ) { settings = { text : settings } ; } settings . callback = callback ; settings . buttons = MessageBox . OK_CANCEL ; return MessageBox . msgBox ( settings ) ; }
Creates a new confirm dialog.

@method confirm
@param {Object} settings Settings for the confirm dialog.
@param {function} [callback] Callback to execute when the user makes a choice.
Creates a new confirm dialog .