2012-04-12 21 views
0

私は、フィールドがxmlファイルで作成されているjoomla 2.5でカスタムコンポーネントを作成しました。 ここにコードがあります。joomla 2.5のカスタムコンポーネントのテキストエリアにエディタを追加するには?

<?xml version="1.0" encoding="utf-8"?> 
<form> 
    <fieldset> 
     <field 
      name="id" 
      type="hidden" 
     /> 
     <field 
      name="title" 
      type="text" 
      label="Title" 
      description="This is the title" 
      size="40" 
      class="inputbox" 
      default="" 
      style="width:294px;height:135px;" 
     /> 
     <field 
      name="description" 
      type="textarea" 
      label="Description" 
      description="This is the description" 
      rows="20" 
      cols="10" 
      class="inputbox" 
      default="" 
     /> 
    </fieldset> 
</form> 

私は説明文の領域を新しい記事のフォームのようにエディタにしたいと思っています。 どうすればいいですか?

答えて

5

私は私の問題を解決しました。 説明フィールドのタイプを変更するだけです。

<field 
     name="description" 
     type="editor" 
     label="Description" 
     description="This is the description" 
     filter="safehtml" 
     class="inputbox" 
     default="" 
    /> 
関連する問題