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/FullScreen/full-screen.js

    r60 r135  
    2424 
    2525  // See if we can find 'popupeditor' and replace it with fullscreen 
    26   var t = editor.config.toolbar; 
    27   var done = false; 
    28   for(var i = 0; i < t.length && !done; i++) 
    29   { 
    30     for(var x = 0; x < t[i].length && !done; x++) 
    31     { 
    32       if(t[i][x] == 'popupeditor') 
    33       { 
    34         t[i][x] = 'fullscreen'; 
    35         done = true; 
    36       } 
    37     } 
    38   } 
    39  
    40   if(!done) 
    41   { 
    42     t[0].push('fullscreen'); 
    43   } 
     26  editor.config.addToolbarElement("fullscreen", "popupeditor", 0); 
    4427} 
    4528 
Note: See TracChangeset for help on using the changeset viewer.