PHP Form Builder Class / Examples / Web Editors

Version: Released:

Web Editors - This project has support for two web editors - TinyMCE and CKEditor. More information about these editors can be found at http://tinymce.moxiecode.com/ and http://ckeditor.com/ respectively. Below, you will find several form/element attributes that affect the behavior of these two html wysiwyg editors.

Processing

<?php

?>

<br/><br/>

<?php
$form 
= new form("webeditors_1");
$form->setAttributes(array(
    
"width" => "850"
));

if(!empty(
$_GET["errormsg_1"]))
    
$form->errorMsg filter_var(stripslashes($_GET["errormsg_1"]), FILTER_SANITIZE_SPECIAL_CHARS);

$form->addHidden("cmd""submit_1");
$form->addCKEditor("CKEditor Web Editor:""MyCKEditor");
$form->addCKEditor("CKEditor Web Editor w/Basic Attribute:""MyCKEditorBasic""", array("basic" => 1));
$form->addButton();
$form->render();
?>