ContentCssText Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.ContentCssText Property

Gets or sets inline CSS text that will be used by the editable area. Example ContentCssText=" p{font:Normal 12px 'Segoe UI'} .exampleclass{font-weight: bold}"

Example

<?php   
    $rte=new RichTextEditor();   
    $rte->Text="Type here"; 
    $rte->ContentCssText="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