Editor.LoadHtml Method

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.LoadHtml Method

Loads the contents of a HTML file into the RichTextEditor control.

Example

<?php   
    $rte=new RichTextEditor();
    $rte->LoadHTML("somefile.html");	
    $rte->ID="Editor1";    
    $rte->MvcInit();
    echo $rte->GetString();  
    // use $_POST["Editor1"]to retrieve the data  
?> 

See Also

Editor Class | RTE Namespace