Title pretty much sums it up. I have a vanilla javascript instance of the DocumentEditor and when I try to save the file I get an empty blob. Not null, undefined or an empty object but a proper blob with no data. This is my script tag (only code interacting with the editor)
<script>
// Initialize DocumentEditorContainer component.
var documenteditorContainer = new ej.documenteditor.DocumentEditorContainer({ enableSfdtExport: true, enableWordExport: true, enableTextExport: true , enableToolbar: true, height: '800px', locale: "es", enableLocalPaste: true });
ej.documenteditor.DocumentEditorContainer.Inject(ej.documenteditor.Toolbar);
ej.documenteditor.DocumentEditorContainer.Inject(ej.documenteditor.WordExport, ej.documenteditor.SfdtExport);
//documenteditorContainer.documentEditor.open("sfdt")
//DocumentEditorContainer control rendering starts
documenteditorContainer.appendTo('#DocumentEditor');
this.insertarTextoEnCursor = function (texto) {
//const iframe = document.getElementsByTagName('iframe')[0];
documenteditorContainer.documentEditor.editor.insertText(texto)
}
function getDocument() {
return documenteditorContainer.documentEditor.saveAsBlob('Sfdt').then((exportedDocument) => {
console.log(exportedDocument);
return exportedDocument;
});
}
</script>