[Pieforms-commit] SF.net SVN: pieforms: [21] pieforms/src/pieform/elements/wysiwyg.php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2006-11-18 11:28:24
|
Revision: 21 http://svn.sourceforge.net/pieforms/?rev=21&view=rev Author: oracleshinoda Date: 2006-11-18 03:28:22 -0800 (Sat, 18 Nov 2006) Log Message: ----------- Did some cosmetic fixing of the WYSIWYG element. It doesn't actually render a wysiwyg at the moment though (no javascript in SVN), and should be renamed to 'tinymce', but at least the fallback behaviour works Modified Paths: -------------- pieforms/src/pieform/elements/wysiwyg.php Modified: pieforms/src/pieform/elements/wysiwyg.php =================================================================== --- pieforms/src/pieform/elements/wysiwyg.php 2006-11-18 11:24:34 UTC (rev 20) +++ pieforms/src/pieform/elements/wysiwyg.php 2006-11-18 11:28:22 UTC (rev 21) @@ -24,8 +24,6 @@ * */ - - /** * Renders a textarea, but with extra javascript to turn it into a wysigyw * textarea. @@ -37,7 +35,7 @@ * @param Pieform $form The form to render the element for * @return string The HTML for the element */ -function pieform_render_wysiwyg($element, $form) { +function pieform_render_wysiwyg($element, Pieform $form) { $rows = $cols = $style = ''; if (isset($element['height'])) { $style .= 'height:' . $element['height'] . ';'; @@ -65,7 +63,7 @@ . (($rows) ? ' rows="' . $rows . '"' : '') . (($cols) ? ' cols="' . $cols . '"' : '') . Pieform::element_attributes($element, array('maxlength', 'size')) - . '>' . hsc($form->get_value($element)) . '</textarea>'; + . '>' . Pieform::hsc($form->get_value($element)) . '</textarea>'; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |