我不能在我的Joomla组件中使用第二个JFactory :: getEditor

时间:2012-02-04 17:22:47

标签: joomla components joomla1.7

* 当我在JPane使用第二个JEditor时,第二个没有正确显示。我刚买了一个textarea。 代码作品Joomla 1.5。我正在调整我的代码到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>";

1 个答案:

答案 0 :(得分:0)

将它称为this is a singleton两次没有意义 - 它返回相同的对象......