$myDE->AddToolbar("Simple", implode(",|,", $rows));
which will take to the right section of the file. Just above this line will be something like
$rows = array (
"Fullscreen,Paste,Findreplace,Spellcheck, -,Bold,Underline,Italic, -,OrderedList,UnorderedList, -,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull, -,CreateLink",
"Fontname,Fontsize, -,Fontcolor,Highlight, -,Image,Flash,Media, -,Table,-,Help",
);
Which is what specifies which items are on the toolbar. To add the undo and redo buttons for example, just change this so it would become
$rows = array (
"Fullscreen,Paste,Undo,Redo,Findreplace,Spellcheck, -,Bold,Underline,Italic, -,OrderedList,UnorderedList, -,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull, -,CreateLink",
"Fontname,Fontsize, -,Fontcolor,Highlight, -,Image,Flash,Media, -,Table,-,Help",
);
Which will add undo and redo buttons just after the paste button on the toolbar when it is in simple mode. You will have to repeat this just below that section for the section
$rows = array (
"Fullscreen,Paste,Findreplace,Spellcheck,Bold,Underline, Italic,Strikthrough, -,OrderedList,UnorderedList, -,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,Help",
"Spellcheck, -,RemoveFormat, -,Indent,Outdent, -,SubScript,SuperScript,CreateLink,CreateEmailLink,Anchor, -,Image,Flash,Media, -,Table,Form",
"Fontname,Fontsize,Formatblock,Fontcolor,Highlight,HR, Insertchars,Showborders",
);
$myDE->AddToolbar("Complete", implode(",|,", $rows));
To do the same thing for Complete mode.
Here is a complete list (at the time of creating this KB Answer) of the options that you can add to your editors toolbar.
| Save Fullscreen Cut Copy Paste Findreplace Undo Redo Spellcheck RemoveFormat Bold Underline Italic Strikethrough OrderedList UnorderedList |
Indent Outdent SubScript SuperScript JustifyLeft JustifyCenter JustifyRight JustifyFull CreateLink CreateEmailLink Anchor Help Fontname Fontsize Formatblock Styles |
Fontcolor Highlight Table Form Flash Image Media Inserttextbox HR Insertchars Pageproperties Clearcode Custominsert Toggleposition Showborders |

The article has been updated successfully.