2011-07-13 15 views
1

カスタムコンポーネントのページのコードは次のとおりです。 Joomlaの外では、CKEditorが表示されますが、Joomlaではデフォルトのテキストエリアのみが表示されます。助けてください! >CK EditorをカスタムJoomlaコンポーネントに統合する際のトラブル

<fieldset> 
    <legend>System Text</legend> 
    <select name="txtid"> 
    <option value="">Change Page</option> 
    <option value="1">Homepage Steps</option> 
    </select> 
    <h2>Setting 1</h2> 
<p> 

    <textarea cols="80" id="editor2" name="editor2" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea> 
</p> 
    <script type="text/javascript"> 
    //<![CDATA[ 

     // Replace the <textarea id="editor"> with an CKEditor 
     // instance, using default configurations. 
     CKEDITOR.replace('editor2', 
      { 
       extraPlugins : 'uicolor', 
       uiColor: '#14B8C4', 
       toolbar : 
       [ 
        [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ], 
        [ 'UIColor' ] 
       ] 
      }); 

    //]]> 
    </script> 
</fieldset> 

>

答えて

0

は、ここで私が使用しているものです:

動作しませんでした
$editor =& JFactory::getEditor(); 
    $editor_params = array('theme' => 'simple'); 
    echo $editor->display('htmlDescription',$htmlDescr , '100%', '250', '50', '15', 'false', $editor_params); 
+0

。私はまだ標準的なテキストエリアしか受け取っていません。 – Refiking

+0

はjoomlaでアクティブにされたプラグインですか? – Tarek

+0

はい。 tinymceプラグインが有効になっています。 – Refiking

0
$editor  =& JFactory::getEditor();           
echo $editor->display('desc',"content in textarea" ,'50%', '300px', '75', '20', false); 
+0

OPがこのコード行を配置する場所についてのコメントはありますか? – Alfabravo

関連する問題