我在自定义模块中创建了一个小部件.一切正常,窗口小部件可以嵌入到CMS页面中.但是,我想添加一个WYSIWYG编辑器而不是textarea参数类型.
这是我的widget.xml中的重要部分:
<parameters>
<description translate="label">
<required>0</required>
<visible>1</visible>
<label>Description</label>
<type>textarea</type>
</description>
</parameters>
Run Code Online (Sandbox Code Playgroud)
我想知道是否有办法扩展Magento的功能,以允许类似于此的所见即所得编辑器:
<parameters>
<description translate="label">
<required>0</required>
<visible>1</visible>
<label>Description</label>
<type>WYSIWYG</type>
</description>
</parameters>
Run Code Online (Sandbox Code Playgroud)
有没有人遇到过类似的问题?..或者有谁知道如何实现这一目标?也许通过一个自定义渲染器,它调用WYSIWYG编辑器,但是如何...?
Thanx提前.
如何在textarea上默认启用wysiwyg?我的意思是,我不想点击wysiwyg按钮来显示tinyMCE区域:

我直接想要这个:
