diff --git a/src/pptxtojson.js b/src/pptxtojson.js index 60fc4eb..1f4221e 100644 --- a/src/pptxtojson.js +++ b/src/pptxtojson.js @@ -549,6 +549,9 @@ async function processSpNode(node, pNode, warpObj, source) { if (!type) { const txBoxVal = getTextByPathList(node, ['p:nvSpPr', 'p:cNvSpPr', 'attrs', 'txBox']) if (txBoxVal === '1') type = 'text' + + const hasTextBody = getTextByPathList(node, ['p:txBody']); + if (hasTextBody) type = 'text'; } if (!type) type = getTextByPathList(slideLayoutSpNode, ['p:nvSpPr', 'p:nvPr', 'p:ph', 'attrs', 'type']) if (!type) type = getTextByPathList(slideMasterSpNode, ['p:nvSpPr', 'p:nvPr', 'p:ph', 'attrs', 'type'])