php - 在 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
),
解决方案
您可以使用“AdminPatternsController”作为指导。
array(
'type' => 'textarea',
'label' => 'text area with rich text editor',
'name' => 'type_textarea_rte',
'autoload_rte' => true
),
推荐阅读
- android-studio - 我需要帮助使用 github Action 向 Codecov 发送 Android 代码覆盖率
- api - UrlfetchApp 捕获异常
- arrays - 高级语言 [eg: c#, javascript, python ....] 如何创建数组
- spring - 我无法使用 springboot 提供在资源文件夹中保存图像的路径
- firebase - 如何在作为列表存储在 Firestore 字段中时为键具有唯一值
- swift - 在 Xcode 项目中本地添加 Swift 包依赖
- python - Keras中的词袋嵌入层?
- python - 如何在 Peewee 中使用历史记录表进行版本控制?
- c++ - 为什么不调用继承类的析构函数?
- flutter - 在颤动中获取弧的路径长度