Toolbar Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.Toolbar Property

Auto configures the toolbar with a set of buttons. Provides a mechanism for rapidly autoconfigures the toolbar with a set of predefined buttons. For example to enable every toolbar button and menu, do this: editor1.Toolbar="full". Note that this method will affect properties of the editor, so it is usually best to call it before any other property or method.

custom,ribbon,full,lite,forum,email,minimal

Example

<?php   
    $rte=new RichTextEditor();   
    $rte->Text="Type here"; 
    $rte->Toolbar="minimal";   
    $rte->ID="Editor1";
    $rte->MvcInit();
    echo $rte->GetString();  
    // use $_POST["Editor1"]to retrieve the data  
?> 

See Also

Editor Class | RTE Namespace