Ignore:
Timestamp:
05/09/05 14:51:52 (14 years ago)
Author:
gocher
Message:

make the plugins use the addToolbarElement from Changeset 127

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/DynamicCSS/dynamiccss.js

    r113 r135  
    88 
    99function DynamicCSS(editor, args) { 
    10         this.editor = editor; 
    11  
    12         var cfg = editor.config; 
    13   var toolbar = cfg.toolbar; 
     10  this.editor = editor; 
     11  var cfg = editor.config; 
    1412  var self = this; 
    1513 
    16         /*var cssArray=null; 
    17         var cssLength=0;*/ 
    18         var lastTag=null; 
    19         var lastClass=null; 
     14/*var cssArray=null; 
     15  var cssLength=0;*/ 
     16  var lastTag=null; 
     17  var lastClass=null; 
    2018 
    2119  var css_class = { 
     
    2725  }; 
    2826  cfg.registerDropdown(css_class); 
    29  
    30   toolbar[0].splice(0, 0, "separator"); 
    31   toolbar[0].splice(0, 0, "DynamicCSS-class"); 
    32   toolbar[0].splice(0, 0, "T[CSS]"); 
     27  cfg.addToolbarElement(["T[CSS]", "DynamicCSS-class", "separator"] , "formatblock", -1); 
    3328}; 
    3429 
Note: See TracChangeset for help on using the changeset viewer.