Changeset 135 for trunk/plugins/Linker


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/Linker/linker.js

    r57 r135  
    4141 
    4242  // See if we can find 'createlink' 
    43   var t = editor.config.toolbar; 
    44   var done = false; 
    45   for(var i = 0; i < t.length && !done; i++) 
    46   { 
    47     for(var x = 0; x < t[i].length && !done; x++) 
    48     { 
    49       if(t[i][x] == 'createlink') 
    50       { 
    51         done = true; 
    52       } 
    53     } 
    54   } 
    55  
    56   if(!done) 
    57   { 
    58     t[t.length-1].push('createlink'); 
    59   } 
     43 editor.config.addToolbarElement("createlink", "createlink", 0); 
    6044} 
    6145 
Note: See TracChangeset for help on using the changeset viewer.