Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在幻灯片中插入 HTML 格式的文本?
我需要插入一组 HTML 格式的文本,这些文本是在PPTXGENJS 生成的幻灯片中WYSIWYG输入的。TinyMCE
WYSIWYG
TinyMCE
如果这是可能的,我正在寻找如何做到这一点的例子。文章或样品将不胜感激。
这个解决方案对我有用。
您需要在 html 中创建一个表格。
<table id="table-id"> </table>
然后您可以将 WYSIWYG (tinyMCE) 内容附加到此表中。
$('#table-id').html('<tbody><tr><td>' + tinymce.activeEditor.getContent() + '</td></tr></tbody>');
然后使用 tableToSlides 方法。
pptx.tableToSlides('table-id');