ReadOnly Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.ReadOnly Property

Gets or sets a value which indicates whether the RichTextEditor should be an active HTML editor, or a read-only document viewer.

Example

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

See Also

Editor Class | RTE Namespace