https://github.com/rbartholomay/ExtJS.ux.HtmlEditor.Plugins是用於htmleditor字段的ExtJS4兼容插件的組 。 在包含htmleditor字段的Netzke表單面板中使用這些插件的最佳方式是什麼?更多一般來說,我想知道如何在Netzke中使用ExtJS插件。在Netzke中使用Ext JS插件
下面是我的一些代碼:
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
我想作出一些更改HTML編輯器的工具欄,但無法弄清楚如何在Netzke指定。請幫忙。