2011-03-18 85 views

回答

1

萬一有人使用Drupal 7個工作,這裏的鏈接到它應該幫助您的自定義表單域整合所見即所得的TinyMCE:http://drupal.org/node/1087468

感謝

0

我n你正在使用drupal 7.請使用以下內容。

$form['FIELD'] = array(
    '#type' => 'text_format', 
    '#title' => t('TITLE'), 
    '#format' => 'full_html' //the format you used for editor. 
); 

在您的表單提交處理程序中,您可以按如下方式訪問該值。

$form_state['values']['FIELD']['value']; 
+0

如何獲得$ form_state ['values'] ['FIELD'] ['safe_value']? – Guru 2015-10-30 05:35:23