如何解决Wordpress TinyMCE 菜单
通过 TinyMCE 在菜单中添加了一个按钮。单击它时,会打开一个窗口,其中包含字段。默认情况下,我可以设置常用字段,但如何制作多列,以便它们看起来很棒。
还有如何通过 TinyMCE 制作单选按钮?
https://i.stack.imgur.com/aR6qu.png
做了,但没有用
const sizeInit = {
type: 'listBox',name: 'titleSizeUnit','values': [
{text: 'px',value: 'px'},{text: 'em',value: 'em'},{text: 'rem',value: 'rem'},],};
const style = {
type: 'listBox',name: 'style',label: 'Style','values': [
{text: 'bold',value: 'bold'},{text: 'italics',value: 'italics'},};
const alignment = {
type: 'listBox',name: 'alignment',label: 'Alignment','values': [
{text: 'right',value: 'right'},{text: 'left',value: 'left'},{text: 'center',value: 'center'}
],};
...
{
type: 'form',padding: 0,spacing: 0,items: [
{
type: 'form',items: [
{
type: 'textBox',name: 'title',label: 'Title',value: '',tooltip: 'Set title here'
}
]
},]
},{
type: 'form',layout: 'flex',direction: 'row',align: 'top',items: [
{
type: 'form',padding: 5,spacing: 5,items: [
{
type: 'form',items: [
{
type : 'textBox',name : 'size',label : 'Font size',value : '',},sizeUnit
]
}
]
},{
type: 'form',name : 'margin',label : 'Margin',name : 'padding',label : 'Padding',sizeUnit
]
}
]
}
]
},{
type: 'form',items: [
{
type : 'colorBox',name : 'titleColor',label : 'Color',onaction : createColorPickAction(),style,alignment
]
}
]
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。