$form->textarea(); <textarea class='tinymce'>$text</textarea>
<!-- Load TinyMCE -->
<script language="javascript">
tinyMCE.init({
mode : "textareas",
width: "100%",
height: "100px",
inlinepopups_skin : "concreteMCE",
theme_concrete_buttons2_add : "spellchecker",
relative_urls : false,
document_base_url: '<?php echo BASE_URL . DIR_REL?>/',
convert_urls: false,
plugins: "paste,inlinepopups,spellchecker,safari",
theme : "advanced",
theme_advanced_toolbar_location : "top",
editor_selector : "ccm-advanced-editor",<?php $textEditorWidth=intval(Config::get('CONTENTS_TXT_EDITOR_WIDTH')); $textEditorHeight=intval(Config::get('CONTENTS_TXT_EDITOR_HEIGHT')); if($textEditorWidth<580) $textEditorWidth=580; //else $textEditorWidth= $textEditorWidth; if($textEditorHeight<100) $textEditorHeight=380; else $textEditorHeight= $textEditorHeight-70; ?>