CuteEditor for PHP 6.1 Class Library

Editor.Focus Property

Specifies whether the editor grabs focus when the page loads. If this property is set to true then the editor will take focus, if it is set to false it will not.


Example Code

<?php
         $editor=new CuteEditor();
         $editor->ID="Editor1";
         $editor->Text="Type here";
         $editor->FilesPath="CuteEditor_Files";
         $editor->Focus=true;
         $editor->Draw();
         $editor=null; 

         //use $_POST["Editor1"]to catch the data
?>

See Also

Editor Class | CuteEditor Namespace