summaryrefslogtreecommitdiff
path: root/smarty_bit/block.textarea.php
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2007-06-28 15:07:23 +0000
committerNick Palmer <nick@sluggardy.net>2007-06-28 15:07:23 +0000
commitd3215964203f72ca79a1d3eff1a42ff1a4f29deb (patch)
tree054bd96ef04e4c8b312febd5779364ebaa9741cb /smarty_bit/block.textarea.php
parent844de6137c1c13786fb151834d0f37684a445b5b (diff)
downloadkernel-d3215964203f72ca79a1d3eff1a42ff1a4f29deb.tar.gz
kernel-d3215964203f72ca79a1d3eff1a42ff1a4f29deb.tar.bz2
kernel-d3215964203f72ca79a1d3eff1a42ff1a4f29deb.zip
Make FCKEditor only latch onto text areas that are created with the smarty {textarea} plugin.
Diffstat (limited to 'smarty_bit/block.textarea.php')
-rw-r--r--smarty_bit/block.textarea.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/smarty_bit/block.textarea.php b/smarty_bit/block.textarea.php
index a55a669..5dc6b83 100644
--- a/smarty_bit/block.textarea.php
+++ b/smarty_bit/block.textarea.php
@@ -18,6 +18,7 @@ function smarty_block_textarea( $pParams, $pContent, &$gBitSmarty ) {
global $gBitSystem, $gContent;
$attributes = '';
$style = '';
+ $class = 'wysiwyg';
if (empty($pParams['rows'])) {
$pParams['rows'] = (empty($_COOKIE['rows']) ? $gBitSystem->getConfig('liberty_textarea_height', 20) : $_COOKIE['rows']);
}
@@ -36,6 +37,9 @@ function smarty_block_textarea( $pParams, $pContent, &$gBitSmarty ) {
case 'label':
$gBitSmarty->assign("textarea_".$_key, $_value);
break;
+ case 'class':
+ $class .= ' '.$_key;
+ break;
case 'style':
$style .= $_key;
break;
@@ -60,7 +64,7 @@ function smarty_block_textarea( $pParams, $pContent, &$gBitSmarty ) {
if (!empty($style)) {
$gBitSmarty->assign('textarea_style', 'style="'.$style.'"');
}
-
+ $gBitSmarty->assign('textarea_class', 'class="'.$class.'"');
$ret = $gBitSmarty->fetch("bitpackage:liberty/edit_textarea.tpl");
// Restore gContent