首页 > 解决方案 > 在 displayForm() 方法 Prestashop 1.7 上激活 TinyMCE

问题描述

我的问题似乎很简单,但是我在文档方面或在研究过程中没有找到任何东西(至少关于 1.6 的答案)如何为我的 displayForm() 方法的 textarea 激活 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
                              ),

标签: phpmoduleprestashop

解决方案


您可以使用“AdminPatternsController”作为指导。

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

推荐阅读