Customizable Toolbar Layouts
Customizable toolbar layouts
You can create any number of toolbars and place any buttons you like on them and in any order you like, plus you can create your own custom buttons, drop-down menus and select list boxes. This demo shows a simple custom toolbar layout.
Source code:
<?php
include_once('wysiwygPro/wysiwygPro.class.php');
// create a new WysiwygPro instance
$editor = new wysiwygPro();
// load the base configuration
$editor->loadPlugin('demoConfig');
// give the editor a name
$editor->name = 'demo';
// remove the default toolbar layout
$editor->clearToolbarLayout();
// add a new toolbar
$editor->addToolbar('toolbar1', array('styles','separator','bold','italic','underline','superscript','subscript','strikethrough', 'separator','image','link'));
// display the editor
$editor->display(700, 400);
?>
We are using a plugin "demoConfig" to apply shared configuration settings such as the file manager configuration. See the source code for this plugin.
WysiwygPro version 3.2.1