corrected example
This commit is contained in:
@ -44,7 +44,7 @@ var doc = new docx.Document();
|
|||||||
// Add some content in the document
|
// Add some content in the document
|
||||||
var paragraph = new docx.Paragraph("Some cool text here.");
|
var paragraph = new docx.Paragraph("Some cool text here.");
|
||||||
// Add more text into the paragraph if you wish
|
// Add more text into the paragraph if you wish
|
||||||
paragraph.addText(new docx.TextRun('Lorem Ipsum Foo Bar'));
|
paragraph.addRun(new docx.TextRun('Lorem Ipsum Foo Bar'));
|
||||||
doc.addParagraph(paragraph);
|
doc.addParagraph(paragraph);
|
||||||
|
|
||||||
// Used to export the file into a .docx file
|
// Used to export the file into a .docx file
|
||||||
|
Reference in New Issue
Block a user