admin管理员组文章数量:1302270
t seems like a simple question, but I've been trying to do this for more than 2 days. How can I configure TinyMCE so that the element is inserted into the current block, rather than creating a new one?
problem:
tinymce.activeEditor.insertContent(`<sticker-text></sticker-text>`);
And this inserts it not into the current tag "p", but creates a break and inserts it on a new line in a separate block.
I've tried that configuration, but it didn't give me any results.
formats: {
stickertext: { inline: 'span' }
},
The expected result would be:
本文标签: TinyMCE insert tag element as inlineStack Overflow
版权声明:本文标题:TinyMCE insert tag element as inline - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741666878a2391363.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论