Customizable Toolbar Layouts

< Back to demos

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.

To enable WYSIWYG editing you must be using a supported browser, however you may still edit the raw HTML code in the above textarea. For a full list of supported browsers please see http://www.wysiwygpro.com/browsers/

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(700400);

?>

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
WysiwygPro.com