gpt4 book ai didi

modal-dialog - TinyMCE API v4 windowManager.open - 我可以为正文选项配置哪些小部件?

转载 作者:行者123 更新时间:2023-12-03 07:13:41 25 4
gpt4 key购买 nike

我想用 Javascript 生成的自定义 HTML 填充模式对话框的主体。

documentation for this method大部分都是空的。

我只找到了示例

有可用类型的文档吗?更具体地说,是否有一种类型可以将通用标记从 Javascript 变量添加到对话框主体?

最佳答案

我美化了tinymce的缩小版后,发现这些可能是windowManager.open的一些body类型。我不确定如何使用它们,因为所有这些信息都是通过试验和失败收集的。由于文档非常糟糕,无法收集到真正的信息。另外,这里还有一个链接,其中包含有关复选框的一些有用信息。

https://wordpress.stackexchange.com/questions/172853/how-disable-checkbox-when-listbox-value-changes-in-tinymce

我花了一个小时左右的时间来检查和测试所有内容,所以我真的希望这能为您省去自己动手的麻烦。

LE:文本框参数:文本框设置表

https://www.tiny.cloud/docs-4x/api/tinymce.ui/tinymce.ui.textbox/

LE2:你可以尝试浏览下面提到的所有tinymce.ui.*元素,并检查它是否有一个设置表,我认为如果有的话它可以用作body的有效参数

LE3:这是旧文档 http://archive.tinymce.com/wiki.php/api4:index ,因为它比新的更有用 ,它是现在唯一可用的文档 https://www.tinymce.com/docs/api/

                {
type : 'listbox',
name : 'listbox',
label : 'listbox',
values : [
{ text: 'Test1', value: 'test1' },
{ text: 'Test2', value: 'test2' },
{ text: 'Test3', value: 'test3' }
],
value : 'test2' // Sets the default
},
{
type : 'combobox',
name : 'combobox',
label : 'combobox',
values : [
{ text: 'Test', value: 'test' },
{ text: 'Test2', value: 'test2' }
]
},
{
type : 'textbox',
name : 'textbox',
label : 'textbox',
tooltip: 'Some nice tooltip to use',
value : 'default value'
},
{
type : 'container',
name : 'container',
label : 'container',
html : '<h1>container<h1> is <i>ANY</i> html i guess...<br/><br/><pre>but needs some styling?!?</pre>'
},
{
type : 'tooltip',
name : 'tooltip',
label : 'tooltip ( you dont use it like this check textbox params )'
},
{
type : 'button',
name : 'button',
label : 'button ( i dont know the other params )',
text : 'My Button'
},
{
type : 'buttongroup',
name : 'buttongroup',
label : 'buttongroup ( i dont know the other params )',
items : [
{ text: 'Button 1', value: 'button1' },
{ text: 'Button 2', value: 'button2' }
]
},
{
type : 'checkbox',
name : 'checkbox',
label : 'checkbox ( it doesn`t seem to accept more than 1 )',
text : 'My Checkbox',
checked : true
},
{
type : 'colorbox',
name : 'colorbox',
label : 'colorbox ( i have no idea how it works )',
// text : '#fff',
values : [
{ text: 'White', value: '#fff' },
{ text: 'Black', value: '#000' }
]
},
{
type : 'panelbutton',
name : 'panelbutton',
label : 'panelbutton ( adds active state class to it,visible only on hover )',
text : 'My Panel Button'
},
{
type : 'colorbutton',
name : 'colorbutton',
label : 'colorbutton ( no idea... )',
// text : 'My colorbutton'
},
{
type : 'colorpicker',
name : 'colorpicker',
label : 'colorpicker'
},
{
type : 'radio',
name : 'radio',
label : 'radio ( defaults to checkbox, or i`m missing something )',
text : 'My Radio Button'
}

Tinymce Body Types Displayed

关于modal-dialog - TinyMCE API v4 windowManager.open - 我可以为正文选项配置哪些小部件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24871792/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com