是否可以为 Gutenberg Block 创建一个插件,当您单击它时,会打开一个或,但仅将 JS 用于后端,对于前端仅使用 HTML,导致其无头。我尝试了很多方法但没有成功。
`Is there a wp.element that is not static like this one and just provides text in front?
edit: function () {
return wp.element.createElement("h3", null, "Hello, this is from the admin editor screen.")
},
save: function () {
return wp.element.createElement("h1", null, "This is the frontend.")
}
})`