Skip to content
jeffkreeftmeijer edited this page Sep 13, 2010 · 2 revisions

First you need to install the Advanced Toolbar (installation) and use it instead of the standard one (usage).

With the Advanced Toolbar you can use selectboxes in your editors. The only difference with creating a regular button and a selectbox is that you need to add an array with options. Let’s say you want to create a font-select box;

toolbar.addSelectbox({
  name : 'fontname',
  options : [
    'Times',
    'Georgia',
    'Arial'
  ]
});

Simple, isn’t it? You can do this with fontname, fontsize, forecolor (font color) and backcolor (background color).

Clone this wiki locally