diff --git a/config-sample.php b/config-sample.php index c73a3d4..6712dab 100644 --- a/config-sample.php +++ b/config-sample.php @@ -13,7 +13,7 @@ $number_entries_labels = array( '== Select a Number ==' ); $multiple_checkboxes = array( '', 'one', 'two', 'three' ); -$multiple_checkboxes_labels = array '', 'One', 'Two', 'Three' ); +$multiple_checkboxes_labels = array ('', 'One', 'Two', 'Three' ); $cap = new CheezCap( array( new CheezCapGroup( 'First Group', 'firstGroup', diff --git a/library.php b/library.php index 1f5021d..ff106ef 100644 --- a/library.php +++ b/library.php @@ -269,6 +269,59 @@ function write_html() { } } +class CheezCapRichTextOption extends CheezCapTextOption { + var $useTextArea; + + function __construct( $_name, $_desc, $_id, $_std = '', $_useTextArea = false ) { + parent::__construct( $_name, $_desc, $_id, $_std ); + $this->useTextArea = true; + } + + function save( $value ) { + parent::save( $value ); + } + + function write_html() { + $stdText = $this->std; + $stdTextOption = get_option( $this->id ); + if ( ! empty( $stdTextOption ) ) + $stdText = $stdTextOption; + ?> +