addOverrideRels(partName) {
            const contentTypeDoc = this.xmlDocuments["[Content_Types].xml"];
            const overrideTags = contentTypeDoc.getElementsByTagName("Override");
            const partNameRegistered = Array.prototype.some.call(overrideTags, function(tag) {
                return tag.getAttribute("PartName") === partName;
            });
            if (partNameRegistered) {
                return;
            }
            const types = contentTypeDoc.getElementsByTagName("Types")[0];
            const newTag = contentTypeDoc.createElement("Override");
            newTag.namespaceURI = null;
            newTag.setAttribute("PartName", '/' + partName);
            newTag.setAttribute("ContentType", "application/vnd.openxmlformats-officedocument.drawingml.chart+xml");
            types.appendChild(newTag);
        }
// Add an extension type in the [Content_Types.xml], is used if for example you want word to be able to read png files (for every partName you add you need a contentType)
Add an extension type in the [Content_Types.xml], is used if for example you want word to be able to read png files (for every partName you add you need a contentType)
Add an extension type in the [ Content_Types . xml ] is used if for example you want word to be able to read png files ( for every partName you add you need a contentType )
addOverrideRels(partName) {
            const contentTypeDoc = this.xmlDocuments["[Content_Types].xml"];
            const overrideTags = contentTypeDoc.getElementsByTagName("Override");
            const partNameRegistered = Array.prototype.some.call(overrideTags, function(tag) {
                return tag.getAttribute("PartName") === partName;
            });
            if (partNameRegistered) {
                return;
            }
            const types = contentTypeDoc.getElementsByTagName("Types")[0];
            const newTag = contentTypeDoc.createElement("Override");
            newTag.namespaceURI = null;
            newTag.setAttribute("PartName", '/' + partName);
            newTag.setAttribute("ContentType", "application/vnd.openxmlformats-officedocument.drawingml.chart+xml");
            types.appendChild(newTag);
        }
addOverrideRels ( partName ) { const contentTypeDoc = this . xmlDocuments [ "[Content_Types].xml" ] ; const overrideTags = contentTypeDoc . getElementsByTagName ( "Override" ) ; const partNameRegistered = Array . prototype . some . call ( overrideTags , function ( tag ) { return tag . getAttribute ( "PartName" ) === partName ; } ) ; if ( partNameRegistered ) { return ; } const types = contentTypeDoc . getElementsByTagName ( "Types" ) [ 0 ] ; const newTag = contentTypeDoc . createElement ( "Override" ) ; newTag . namespaceURI = null ; newTag . setAttribute ( "PartName" , '/' + partName ) ; newTag . setAttribute ( "ContentType" , "application/vnd.openxmlformats-officedocument.drawingml.chart+xml" ) ; types . appendChild ( newTag ) ; }
Add an extension type in the [Content_Types.xml], is used if for example you want word to be able to read png files (for every partName you add you need a contentType)
Add an extension type in the [ Content_Types . xml ] is used if for example you want word to be able to read png files ( for every partName you add you need a contentType )