2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-21 18:53:20 +00:00

Input now uses CodeMirror editor

This commit is contained in:
n1474335
2022-06-29 18:02:49 +01:00
parent 54fdc05e3a
commit 85ffe48743
17 changed files with 666 additions and 182 deletions

View File

@@ -1019,7 +1019,6 @@ class OutputWaiter {
}
document.getElementById("output-info").innerHTML = msg;
document.getElementById("input-selection-info").innerHTML = "";
document.getElementById("output-selection-info").innerHTML = "";
}
@@ -1292,9 +1291,7 @@ class OutputWaiter {
if (this.outputs[activeTab].data.type === "string" &&
active.byteLength <= this.app.options.ioDisplayThreshold * 1024) {
const dishString = await this.getDishStr(this.getOutputDish(activeTab));
if (!await this.manager.input.preserveCarriageReturns(dishString)) {
active = dishString;
}
active = dishString;
} else {
transferable.push(active);
}