(html, activeRequestTextarea)
| 397 | } |
| 398 | |
| 399 | const viewDiffCode = (html, activeRequestTextarea) => { |
| 400 | disableCellCode(activeRequestTextarea) |
| 401 | const activeCell = activeRequestTextarea.parentElement.parentElement; |
| 402 | |
| 403 | // Due to the need to hide user code, the previous preview logic cannot be used |
| 404 | const codeMirrorCode = activeCell.querySelector(".CodeMirror-code") |
| 405 | const codeMirrorCodeLine = document.createElement('pre'); |
| 406 | codeMirrorCodeLine.classList.add("CodeMirror-line", "displayed", "per-insert-code") |
| 407 | |
| 408 | codeMirrorCodeLine.innerHTML = html |
| 409 | codeMirrorCode.appendChild(codeMirrorCodeLine) |
| 410 | } |
| 411 | |
| 412 | |
| 413 |
no test coverage detected