在 displayForm() 方法 Prestashop 1.7 上激活 TinyMCE

Activate TinyMCE on displayForm() method Prestashop 1.7

我的问题看起来很简单,但我在文档方面或在我的研究中没有找到任何东西(至少是关于 1.6 的答案)如何为我的 displayForm () 方法的文本区域激活 tinymce ?

'input' => array(
                        /* ... */

                          array(
                              'type' => 'textarea',
                              'label' => $this->l('Item Details'),
                              'required' => true,
                               // I tried this, indicated by the doc
                              'options' => array(
                                  'autoload' => true,
                                  'limit' => 21000
                              ),

您可以使用 "AdminPatternsController" 作为指南。

            array(
                'type' => 'textarea',
                'label' => 'text area with rich text editor',
                'name' => 'type_textarea_rte',
                'autoload_rte' => true
            ),