RichTextEditor for PHP 8.0 Class Library

Editor.PreviewCssText Property

Gets or sets inline CSS text that will be used by the preview window. Example PreviewCssText="div,p{font:Normal 12px 'Segoe UI'}"

Example

<?php   
    $rte=new RichTextEditor();   
    $rte->Text="Type here"; 
    $rte->PreviewCss="body{color:Blue;}.Head{font-weight:bold;font-size:20px;}";   
    $rte->ID="Editor1";
    $rte->MvcInit();
    echo $rte->GetString();  
    // use $_POST["Editor1"]to retrieve the data  
?> 

See Also

Editor Class | RTE Namespace