CuteEditor for PHP 6.1 Class Library

Editor.DOCTYPE Property

Cute Editor allows you to edit a full HTML page, including <title>, <!DOCTYPE...> and some other options. You can use this property to specify the DOCTYPE (document type declaration) which will appear at the very top of every web page.


Example Code

<?php
         $editor=new CuteEditor();
         $editor->ID="Editor1";
         $editor->Text="Type here";
         $editor->FilesPath="CuteEditor_Files";
         $editor->DOCTYPE="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
         $editor->Draw();
         $editor=null; 

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

See Also

Editor Class | CuteEditor Namespace