| Cute Editor for PHP |
The toolbar of CuteEditor by default displays a predefined set of tool buttons. You can easily modify this default set using the following methods.
|
1. Load and Edit the configuration file directly
|
For example: The following code disables the save, bold buttons:
|
|
| 2. Load
the different configuration file dynamically for the different roles/users
using $editor->AutoConfigure property.
|
For example:$editor->AutoConfigure = AutoConfigure.Simple
|
|
| 3. Create/load a custom toolbar configuration file | View the topic:
How to create a custom toolbar configuration file? |
|
| 4. Set the template or layout to use for the toolbars dynamically using $editor->TemplateItemList property. |
For example:
$editor->TemplateItemList = "bold, ilatic, underline"; |
|
| 5. Put the toolbar items needed to be disabled into this $editor->DisableItemList string. |
For example:
$editor->DisableItemList = "save, help, CssStyle";
|
|
| 6. Create/Add your own custom button dynamically. | View the topic:
Add your own custom button |