EditCompleteDocument Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.EditCompleteDocument Property

Specifies whether a complete HTML document is being edited.

Example

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

Remarks

If false, the editor will only process content inside the page body i.e. all content inside of the <body>...</body> tags of a page. If true, the editor will process content outside the page body and preserve header tags (e.g. <head>...</head>, <title>...</title>, etc.).

See Also

Editor Class | RTE Namespace