Editor.SetSecurity Method

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.SetSecurity Method

Allows you programmatically manage the security settings.

Example

<?php   
    $rte=new RichTextEditor();   
    $rte->Text="Type here";
    $rte->SetSecurity("*", "*", "StoragePath", "~/uploads2");
    $rte->MvcInit();
    $rte->Name="rte1";   
    $rte->ID="Editor1";
    echo $rte->GetString();  
    // use $_POST["Editor1"]to retrieve the data  
?> 

See Also

Editor Class | RTE Namespace