summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Serbinski2006-03-07 18:19:14 (GMT)
committer Ted Serbinski2006-03-07 18:19:14 (GMT)
commitde22ba4ae4b755a7e6d12d4ed979cc3874a29ee9 (patch)
treed84723435f76feeb20a1b0d9565b45410a5b01eb
parent0cc5775abe133881d524c6b7c526d36d55091d89 (diff)
let drupal resizable textareas work when tinymce is off
-rw-r--r--tinymce.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/tinymce.module b/tinymce.module
index 2234c27..7d78c68 100644
--- a/tinymce.module
+++ b/tinymce.module
@@ -125,7 +125,7 @@ function tinymce_process_textarea($element) {
static $is_running = FALSE;
global $user;
static $profile_name;
-
+
//$element is an array of attributes for the textarea but there is no just 'name' value, so we extract this from the #id field
$textarea_name = substr($element['#id'], strpos($element['#id'], '-') + 1);
@@ -144,6 +144,8 @@ function tinymce_process_textarea($element) {
// If $init array is empty no need to execute rest of code since there are no textareas to theme with TinyMCE
if (count($init) < 1) {
+ // we set this textarea to use drupal resizable since tinymce won't be controling this textarea
+ $element['#resizable'] = TRUE;
return $element;
}