mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Improved HTML output sizing
This commit is contained in:
parent
7eda2fd4a6
commit
80e8b2339d
5 changed files with 17 additions and 9 deletions
|
@ -17,9 +17,17 @@
|
|||
user-select: auto;
|
||||
}
|
||||
|
||||
#output-text.html-output .cm-content,
|
||||
#output-text.html-output .cm-line,
|
||||
#output-html {
|
||||
display: block;
|
||||
height: 100%;
|
||||
user-select: auto;
|
||||
}
|
||||
#output-text.html-output .cm-line .cm-widgetBuffer,
|
||||
#output-text.html-output .cm-line>br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cm-editor {
|
||||
height: 100%;
|
||||
|
|
|
@ -240,6 +240,9 @@ class OutputWaiter {
|
|||
this.currentOutputCache = data;
|
||||
this.toggleLoader(true);
|
||||
|
||||
// Remove class to #output-text to change display settings
|
||||
this.outputTextEl.classList.remove("html-output");
|
||||
|
||||
// If data is an ArrayBuffer, convert to a string in the correct character encoding
|
||||
const tabNum = this.manager.tabs.getActiveTab("output");
|
||||
this.manager.timing.recordTime("outputDecodingStart", tabNum);
|
||||
|
@ -311,6 +314,9 @@ class OutputWaiter {
|
|||
effects: this.outputEditorConf.drawSelection.reconfigure([])
|
||||
});
|
||||
|
||||
// Add class to #output-text to change display settings
|
||||
this.outputTextEl.classList.add("html-output");
|
||||
|
||||
// Execute script sections
|
||||
const outputHTML = document.getElementById("output-html");
|
||||
const scriptElements = outputHTML ? outputHTML.querySelectorAll("script") : [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue