(textarea)
| 459 | |
| 460 | // Hide all code for the active cell |
| 461 | const disableCellCode = (textarea) => { |
| 462 | const activeCell = textarea.parentElement.parentElement |
| 463 | const codeMirrorLines = activeCell.querySelectorAll('.CodeMirror-code pre'); |
| 464 | for (let i = 0; i < codeMirrorLines.length; i++) { |
| 465 | codeMirrorLines[i].style.display = "none" |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | // Restore all code that hides the current cell |
| 470 | utility.enableCellCode = (textarea) => { |