Changeset 1278


Ignore:
Timestamp:
11/18/10 16:18:37 (7 years ago)
Author:
ejucovy
Message:

close #1561: register DefinitionList? buttons near the standard list buttons

File:
1 edited

Legend:

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

    r1274 r1278  
    2525    } 
    2626  } 
    27   // add a new line in the toolbar 
    28   cfg.toolbar.push(toolbar); 
     27 
     28  // We'll insert the buttons next to the UL/OL buttons, if they exist. 
     29  // If neither of those buttons exists, addToolbarElement puts our buttons 
     30  // at the beginning of the toolbar, which is good enough. 
     31  for( var i = 0; i < toolbar.length; ++i ) { 
     32    cfg.addToolbarElement(toolbar[i], ["insertunorderedlist", "insertorderedlist"], 1); 
     33  } 
    2934} 
    3035 
Note: See TracChangeset for help on using the changeset viewer.