*When I use second JEditor in JPane, second one is not shown properly. I just got a textarea.
Code works Joomla 1.5. I am adapting my code to Joomla 1.7. *
echo "<div id='editor1'>";
$editor =JFactory::getEditor();
$params = array( 'smilies'=> '0' ,
'style' => '0' ,
'layer' => '0' ,
'table' => '0' ,
'clear_entities'=>'0'
);
echo $editor->display( 'desc', '', '567', '400', '20', '20', false, $params );
echo "</div>";
echo $paneTab->endPanel();
echo $paneTab->startPanel("İngilizce Açıklama","engaciklama");
echo "<div id='editor2'>";
$editor2 =JFactory::getEditor();;
$params = array( 'smilies'=> '0' ,
'style' => '0' ,
'layer' => '0' ,
'table' => '0' ,
'clear_entities'=>'0'
);
echo $editor2->display( 'edesc', '', '567', '400', '20', '20', false, $params );
echo "</div>";
There’s no point in calling it twice as this is a singleton – it returns the same object…