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/SuperClean/super-clean.js

    r115 r135  
    77 
    88  // See if we can find 'killword' and replace it with superclean 
    9   var t = editor.config.toolbar; 
    10   var done = false; 
    11   for(var i = 0; i < t.length && !done; i++) 
    12   { 
    13     for(var x = 0; x < t[i].length && !done; x++) 
    14     { 
    15       if(t[i][x] == 'killword') 
    16       { 
    17         t[i][x] = 'superclean'; 
    18         done = true; 
    19       } 
    20     } 
    21   } 
    22  
    23   if(!done) 
    24   { 
    25     t[t.length-1].push('superclean'); 
    26   } 
     9  editor.config.addToolbarElement("superclean", "killword", 0); 
    2710} 
    2811 
Note: See TracChangeset for help on using the changeset viewer.