PreviewCss Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.PreviewCss Property

Specifies the location of the style sheet that will be used by the preview window. Multiple Style Sheets are supported. Example PreviewCss="example.css,~/portal.css,/default.css"

Example

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

See Also

Editor Class | RTE Namespace