Changeset 591


Ignore:
Timestamp:
04/16/09 12:08:48 (3 years ago)
Author:
totoro
Message:

Added dialogFeaturesPreview option and improved dialog(). Fixes #170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wymeditor/jquery.wymeditor.js

    r588 r591  
    515515    dialogFeatures:    "menubar=no,titlebar=no,toolbar=no,resizable=no" 
    516516                      + ",width=560,height=300,top=0,left=0", 
     517    dialogFeaturesPreview: "menubar=no,titlebar=no,toolbar=no,resizable=no" 
     518                      + ",scrollbars=yes,width=560,height=300,top=0,left=0", 
    517519 
    518520    dialogHtml:      "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'" 
     
    936938     
    937939    case WYMeditor.PREVIEW: 
    938       this.dialog(WYMeditor.PREVIEW); 
     940      this.dialog(WYMeditor.PREVIEW, this._options.dialogFeaturesPreview); 
    939941    break; 
    940942     
     
    11441146 * @description Opens a dialog box 
    11451147 */ 
    1146 WYMeditor.editor.prototype.dialog = function( dialogType, bodyHtml ) { 
     1148WYMeditor.editor.prototype.dialog = function( dialogType, dialogFeatures, bodyHtml ) { 
    11471149   
    1148   var wDialog = window.open( 
    1149     '', 
    1150     'dialog', 
    1151     this._wym._options.dialogFeatures); 
     1150  var features = dialogFeatures || this._wym._options.dialogFeatures; 
     1151  var wDialog = window.open('', 'dialog', features); 
    11521152 
    11531153  if(wDialog) { 
Note: See TracChangeset for help on using the changeset viewer.