PPTXGENJS Is there a way to insert an HTML formatted text inside a slide?

1.3k Views Asked by At

Is it possible to insert HTML formatted texts inside a slide?

I need to insert a set of HTML formatted texts that was entered in a WYSIWYG input from TinyMCE in a powerpoint slide generated by PPTXGENJS.

If this is possible, I am looking for examples on how to do it. Articles or samples will be greatly appreciated.

1

There are 1 best solutions below

0
On

This solutions worked for me.

You need to create a table in html.

<table id="table-id">
</table>

Then you can append WYSIWYG (tinyMCE) content to this table.

$('#table-id').html('<tbody><tr><td>' + tinymce.activeEditor.getContent() + '</td></tr></tbody>');

Then use tableToSlides method.

pptx.tableToSlides('table-id');