MCPcopy Create free account
hub / github.com/braziljs/eloquente-javascript / closeCode

Function closeCode

src/client/ejs.mjs:234–239  ·  view source on GitHub ↗
(editor)

Source from the content-addressed store, hash-verified

232 }
233
234 function closeCode(editor) {
235 let context = editor.state.facet(contextFacet)
236 if (context.isHTML && context.sandbox) return
237 context.wrap.remove()
238 context.orig.style.display = ""
239 }
240
241 function revertCode(editor) {
242 let context = editor.state.facet(contextFacet)

Callers 1

runFunction · 0.85

Calls 1

facetMethod · 0.80

Tested by

no test coverage detected