TinyMCE 插件创建表行

发布于 2025-01-04 23:01:58 字数 490 浏览 6 评论 0原文

有没有办法为tinymce创建一个插件,根据用户在输入框中输入的内容创建自定义HTML布局以创建HTML?

例如,目前我使用“模板”插件创建此示例 HTML,用户必须复制/粘贴 HTML 以获得他想要的列表项数量:

<ul>
<li><strong>Attribute Name</strong> Attributes description.</li>
<li><strong>Attribute Name</strong> Attributes description.</li>
</ul>

我想将类似的内容添加到弹出插件中,该插件会自动为用户插入的每个属性生成

  • 在此处输入图像描述
  • Is there a way to create a plugin for tinymce that creates a custom HTML layout based on what the user enters into input boxes to create the HTML?

    For example at the moment I use the "template" plugin which creates this example HTML and the user has to copy/paste the HTML for how ever many list items he wants:

    <ul>
    <li><strong>Attribute Name</strong> Attributes description.</li>
    <li><strong>Attribute Name</strong> Attributes description.</li>
    </ul>
    

    I would like to add something like this to a popup plugin which automatically generates the <li> for each of the attributes that the user inserts.
    enter image description here

    如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

    扫码二维码加入Web技术交流群

    发布评论

    需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

    评论(1

    忆离笙 2025-01-11 23:01:58

    我不知道有这样的插件。看起来你必须自己开发一些东西。您可以从这里开始:http://www.tinymce.com/wiki.php/Creating_a_plugin

    I do not know of such a plugin. Looks like you will have to develop something on your own. You may start here: http://www.tinymce.com/wiki.php/Creating_a_plugin

    ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文