Ckeditor 如何在“编辑器”对话框中对齐图元
我的编辑器对话框中有带按钮的文本字段:Ckeditor 如何在“编辑器”对话框中对齐图元,ckeditor,Ckeditor,我的编辑器对话框中有带按钮的文本字段: { type: 'hbox', id: 'search', children: [ { type: 'text', id: 'searchText', label: 'Search something' }, { id: 'searchButton', type:
{
type: 'hbox',
id: 'search',
children: [
{
type: 'text',
id: 'searchText',
label: 'Search something'
},
{
id: 'searchButton',
type: 'button',
label: 'Search',
onClick: function() {
alert("o.O");
}
}
]
}
问题是,searchButton
与文本字段的标签对齐,而不是与文本字段本身对齐。我试图将align
属性添加到hbox
和按钮中(值为底部
和中间
),但没有结果
如何使按钮与文本字段在同一行中对齐?我也遇到了同样的问题。我通过应用样式属性解决了这个问题
{
type : 'button',
id : 'searchButton',
label : 'Search',
style : 'margin-top:15px;',
}