MCPcopy
hub / github.com/NitroRCr/AIaW / uneditable

Function uneditable

src/utils/codejar.ts:289–299  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

287 }
288
289 function uneditable(node: Node): Element | undefined {
290 while (node && node !== editor) {
291 if (node.nodeType === Node.ELEMENT_NODE) {
292 const el = node as Element
293 if (el.getAttribute('contenteditable') == 'false') {
294 return el
295 }
296 }
297 node = node.parentNode!
298 }
299 }
300
301 function beforeCursor() {
302 const s = getSelection()

Callers 1

restoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected