TextDirection Property

Rich Text Editor for PHP

RichTextEditor for PHP 8.0 Class Library

Editor.TextDirection Property

Gets or sets the text writing direction of the RichTextEditor control: left to right or right to left (LeftToRight,RightToLeft).

Example

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

See Also

Editor Class | RTE Namespace