TabSpaces Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.TabSpaces Property

Gets or sets the number of spaces to be inserted when the user hits the "tab" key.

Example

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

See Also

Editor Class | RTE Namespace