|
acevedo
2 posts Location: n.a. |
18.05.2011 23:52Re: Format Your text - WYSIWYG Editoryou can add the following code in default.php on posting view to replace the textarea default to TinyMCE editor for joomla:
echo "";
//echo "";
$htmlText = "";
if ( $this->task == "quote") {
$htmlText = "" . $this->messageText . " ";
}
if ( $this->task == "edit") {
$htmlText = $this->messageText;
}
$editorWysiwyg =& JFactory::getEditor();
$parametros = array('mode' => 'extended', 'custom_plugin' => 'bbcode');
echo $editorWysiwyg->display('postText', $htmlText, '550', '400', '80', '20', true, $parametros);
//echo "";
echo "";
|