NAME='html_editor_form'; $form->METHOD='POST'; $form->ACTION=''; $form->ONSUBMIT='return false'; $form->debug='trigger_error'; $form->AddInput(array( 'TYPE'=>'custom', 'ID'=>'editor', 'CustomClass'=>'form_html_editor_class', 'NAME'=>'editor', 'ROWS'=>20, 'COLS'=>80, 'VALUE'=>'

Hello world!

{menu sad}

{smiley}

', 'Debug'=>1, 'STYLE'=>'width: 800px; height: 600px; background-color: #ffffff; border-style: solid; border-width: 1px; margin: 0px; border-color: #707070 #e0e0e0 #e0e0e0 #707070', /* * Set the path of html_editor.js if it is not in the current directory */ 'JavascriptPath'=>'', 'TemplateVariables'=>array( 'menu'=>array( 'Preview'=>'File Edit Tools Help', 'Inline'=>0, 'Title'=>'Menu', 'Alternatives'=>array( 'vertical'=>array( 'Preview'=>'File
Edit
Tools
Help', 'Title'=>'Vertical menu' ), ) ), 'smiley'=>array( 'Preview'=>';-)', 'Inline'=>1, 'Title'=>'Smiley', 'Alternatives'=>array( 'sad'=>array( 'Preview'=>':-(', 'Title'=>'Sad' ), 'grin'=>array( 'Preview'=>':D', 'Title'=>'Grin' ), 'shocked'=>array( 'Preview'=>':O', 'Title'=>'Shocked' ), ) ) ), )); $form->AddInput(array( 'TYPE'=>'submit', 'ID'=>'send', 'NAME'=>'send', 'VALUE'=>'Submit', )); $head = $form->PageHead(); $onload = $form->PageLoad(); $onunload = $form->PageUnload(); ?> Test for Manuel Lemos' PHP form class using the HTML editor plug-in

Test for Manuel Lemos' PHP form class using the HTML editor plug-in

StartLayoutCapture(); $form->AddInputPart('editor'); $form->AddInputPart('send'); $form->EndLayoutCapture(); $form->DisplayOutput(); ?>