MCPcopy Create free account
hub / github.com/editablejs/editable / handleSelectionChange

Function handleSelectionChange

packages/plugins/toolbar/src/toolbar/store.ts:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 let destroy: (() => void) | void
39
40 const handleSelectionChange = () => {
41 if (destroy) destroy()
42 destroy = aciton()
43 }
44 editor.on('selectionchange', handleSelectionChange)
45 if (editorRef.current !== editor) {
46 destroy = aciton()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…