Changeset 1439


Ignore:
Timestamp:
04/18/18 23:44:49 (8 months ago)
Author:
gogo
Message:

Put the TableOperations? toolbar where the existing "inserttable" button is in the toolbar (rather than dumping it on the end of the toolbar).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/TableOperations/TableOperations.js

    r1402 r1439  
    3737 
    3838  // Remove existing inserttable and toggleborders, we will replace it in our group 
    39   cfg.removeToolbarElement(' inserttable toggleborders '); 
     39  // cfg.removeToolbarElement(' inserttable toggleborders '); 
     40  // Actually, keep inserttable, we will use it to locate where to put our new block 
     41  cfg.removeToolbarElement(' toggleborders '); 
    4042 
    4143  var toolbar; 
     
    4345    toolbar = ["linebreak"]; 
    4446  } else { 
    45     toolbar = ["inserttable"]; 
     47    toolbar = [ ];  
    4648  } 
    4749 
     
    144146 
    145147  // add a new line in the toolbar 
    146   cfg.toolbar.push(toolbar); 
     148  // cfg.toolbar.push(toolbar); 
     149  cfg.addToolbarElement(toolbar, [ 'inserttable', 'insertimage'], 0); 
    147150   
    148151  if ( typeof PopupWin == 'undefined' ) 
Note: See TracChangeset for help on using the changeset viewer.