动态占位符

问题描述

我想问一下,如果有人知道如何使用数组制作动态占位符。基本上我有这个结构,需要创建一个占位符,其中“名称”具有“内容

{
  "name": "bigTitle","type": "text","content": "Got a question?"
}

return placeholders with the content

解决方法

请在这里使用 toPlaceholders 方法,使用可以创建自己的自定义代码片段/插件(取决于您如何真正使用它)并在其中运行此方法。