EditorBodyStyle Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.EditorBodyStyle Property

Specifies the css style that will be applied to the body of the editor document.

Example

<?php   
    $rte=new RichTextEditor();   
    $rte->Text="Type here"; 
    $rte->EditorBodyStyle="color:Red; font-style:italic;";   
    $rte->ID="Editor1";    
    $rte->MvcInit(); 
    echo $rte->GetString();  
    // use $_POST["Editor1"]to retrieve the data  
?> 

See Also

Editor Class | RTE Namespace