大家早上好,我通过插件生成了一个简码。它具有三个字段:一个选择字段和两个文本字段。
我想要做的是显示并选择博客中的所有文章。
选择文章后,必须在文本字段中填充文章的url和发布日期。
这是简码插件生成的代码。
(function(){
tinymce.create("tinymce.plugins.selectpost", {
init: function(editor, url) {
editor.addButton("icrp", {
title: "Shortcode",
icon: "icon icr-mce-icon dashicons-wordpress",
onclick: function(){
// Open window
editor.windowManager.open({
title: "Shortcode",
bodyType: "tabpanel",
body: [{
title: "General",
type: "form",
items: [
{type: "listbox", name: "nome", label: "Nome", values: [
]},
{type: "textbox", name: "url", label: "URL"},
{type: "textbox", name: "data", label: "Data"},
],
},
{
title: "About",
type: "form",
谁可以帮助我了解如何实现目标?谢谢!