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/FindReplace/find-replace.js

    r90 r135  
    1010var cfg = editor.config; 
    1111var self = this; 
    12  
    1312cfg.registerButton("FR-findreplace", this._lc("Find and Replace"), 
    1413                   editor.imgURL("ed_find.gif", "FindReplace"), false, 
    1514                   function(editor) { self.buttonPress(editor); }); 
    16  
    17 var joincfg = cfg.toolbar[0].join("|");  
    18   if(/formatblock\|/.test(joincfg)) 
    19     cfg.toolbar[0] = joincfg.replace(/formatblock\|(space\|)?/, 
    20                      "formatblock|space|FR-findreplace|separator|").split("|"); 
    21   else if(/fontsize\|/.test(joincfg)) 
    22     cfg.toolbar[0] = joincfg.replace(/fontsize\|(space\|)?/, 
    23                      "fontsize|space|FR-findreplace|separator|").split("|"); 
    24   else if(/fontname\|/.test(joincfg)) 
    25     cfg.toolbar[0] = joincfg.replace(/fontname\|(space\|)?/, 
    26                      "fontname|space|FR-findreplace|separator|").split("|"); 
    27   else  
    28     cfg.toolbar[0].splice(0, 0, "FR-findreplace", "separator"); 
     15cfg.addToolbarElement(["FR-findreplace","separator"], ["formatblock","fontsize","fontname"], -1); 
    2916}; 
    3017 
Note: See TracChangeset for help on using the changeset viewer.