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

Function removePanels

static/editor.md/lib/codemirror/addon/display/panel.js:84–93  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

82 }
83
84 function removePanels(cm) {
85 var info = cm.state.panels;
86 cm.state.panels = null;
87
88 var wrap = cm.getWrapperElement();
89 info.wrapper.parentNode.replaceChild(wrap, info.wrapper);
90 wrap.style.height = info.setHeight;
91 cm.setSize = cm._setSize;
92 cm.setSize();
93 }
94});

Callers 1

panel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected