summaryrefslogtreecommitdiff
path: root/smarty_bit/block.textarea.php
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2007-07-11 18:45:40 +0000
committerNick Palmer <nick@sluggardy.net>2007-07-11 18:45:40 +0000
commit8aa608dbbba4b3dc6fcd6aa9f2da93f39ff4728c (patch)
tree2cfd259cda8bc3439b0ce5f231d14569c0500d27 /smarty_bit/block.textarea.php
parent3c24b1b839c476cfc795f88fd6b7869076b19b74 (diff)
downloadkernel-8aa608dbbba4b3dc6fcd6aa9f2da93f39ff4728c.tar.gz
kernel-8aa608dbbba4b3dc6fcd6aa9f2da93f39ff4728c.tar.bz2
kernel-8aa608dbbba4b3dc6fcd6aa9f2da93f39ff4728c.zip
Be a little bit more selective about what we allow fckeditor to latch onto.
Diffstat (limited to 'smarty_bit/block.textarea.php')
-rw-r--r--smarty_bit/block.textarea.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/smarty_bit/block.textarea.php b/smarty_bit/block.textarea.php
index 5dc6b83..a595832 100644
--- a/smarty_bit/block.textarea.php
+++ b/smarty_bit/block.textarea.php
@@ -15,10 +15,15 @@
* -------------------------------------------------------------
*/
function smarty_block_textarea( $pParams, $pContent, &$gBitSmarty ) {
- global $gBitSystem, $gContent;
+ global $gBitSystem, $gContent, $gLibertySystem;
$attributes = '';
$style = '';
- $class = 'wysiwyg';
+ $class = '';
+ if ((!empty($gLibertySystem->mPlugins['bithtml']) && $gLibertySystem->mPlugins['bithtml']['is_active'] == 'y') ||
+ (!empty($gLibertySystem->mPlugins['tikiwiki']) && $gLibertySystem->mPlugins['tikiwiki']['is_active'] == 'y' &&
+ $gBitSystem->isFeatureActive('content_force_allow_html')) ) {
+ $class = 'wysiwyg';
+ }
if (empty($pParams['rows'])) {
$pParams['rows'] = (empty($_COOKIE['rows']) ? $gBitSystem->getConfig('liberty_textarea_height', 20) : $_COOKIE['rows']);
}