MCPcopy Create free account
hub / github.com/TruthHun/BookStack / handleFileSelect

Function handleFileSelect

static/word2md/word2md.js:92–100  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

90 .addEventListener("change", handleFileSelect, false);
91
92 function handleFileSelect(event) {
93 readFileInputEventAsArrayBuffer(event, function (arrayBuffer) {
94 mammoth.convertToHtml({
95 arrayBuffer: arrayBuffer
96 }, options)
97 .then(displayResult)
98 .done();
99 });
100 }
101
102 function displayResult(result) {
103 document.getElementById("output").innerHTML = result.value;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected