Changeset 784 for branches/ray/plugins


Ignore:
Timestamp:
03/15/07 10:17:53 (13 years ago)
Author:
ray
Message:

upated branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ray/plugins/Stylist/stylist.js

    r783 r784  
    765765Stylist.prototype.onGenerateOnce = function() 
    766766{ 
     767  var cfg = this.editor.config; 
     768  if(typeof cfg.css_style != 'undefined' && Xinha.objectProperties(cfg.css_style).length != 0) 
     769  { 
     770    this._prepareDialog(); 
     771  } 
     772 
     773}; 
     774Stylist.prototype._prepareDialog = function() 
     775{ 
    767776  var editor = this.editor; 
    768777  var stylist = this; 
    769   if(typeof editor.config.css_style != 'undefined' && Xinha.objectProperties(editor.config.css_style).length != 0) 
    770   { 
     778   
    771779    editor._stylist = null; // This needs to be changes to be Stylist::_stylist sometime 
    772780    editor._stylist = editor.addPanel('right'); 
     
    832840      } 
    833841    ); 
    834   } 
    835  
    836 }; 
     842} 
    837843Stylist.prototype.resize = function() 
    838844{ 
Note: See TracChangeset for help on using the changeset viewer.