FCKEditor form element, WYSIWYG editor
FCKEditorArea2
This element uses the most famous and feature rich WYSIWYG editor on the web, the FCK Editor v2. This element supports the required validation which uses JavaScript FCKEditorAPI calls to tell if the editor is empty.
<?php
$config = Array(
'body' => Array(
'type' => 'mapMarker',
'displayname' => 'Specify your location!',
'width' => 350, // width of editor in pixels, default: 700
'height' => 350, // height of editor in pixels, default: 300
'jspath' => '/js/',
// Path (URL) to FCK Editor. Tries to find $GLOBALS['FCKEditorBasePath']
// if jspath is not specified. Trailing slash required.
'includepath' => '.../',
// filesystem path to fckeditor.php wrapper included in FCK Editor
// releases. Trailing slash required.
'value' => 'default value here',
'help' => 'validation failed for this element',
'rowlayout' => '...%element% %prefix% %postfix% etc...',
'prefix' => 'string to display before element',
'postfix' => 'string to display after element',
'readonly' => 1 | 0,
'display' => 1 | 0,
'htmlid' => 'name1',
);
?>
form validation for developers!
clonefish is a proven, mature form generator class that helps PHP developers to create, validate and process secure, flexible and easy-to-maintain formslearn more