https://github.com/rbartholomay/ExtJS.ux.HtmlEditor.Plugins是一组用于 htmleditor 字段的 ExtJS4 兼容插件。在包含 htmleditor 字段的 Netzke 表单面板中使用这些插件的最佳方式是什么?更一般地说,我想知道如何在 Netzke 中使用 ExtJS 插件。
这是我的一些代码:
class DocumentForm < Netzke::Basepack::FormPanel
config do
{
:title => "Edit Document",
:items => model_fields
}
end
def model_fields
[{
:xtype => 'textfield',
:field_label => 'Title',
:name => 'title',
:allowBlank => false,
:read_only => false
},
{
xtype: 'htmleditor',
name: 'body',
field_label: 'Bodytext',
height: 300,
anchor: '98%',
read_only: false,
}]
end
我想对 htmleditor 的工具栏进行一些更改,但不知道如何在 Netzke 中指定它。请帮忙。