()
| 145 | let wrap = node.parentNode.insertBefore(elt("div", {"class": "editor-wrap"}), node) |
| 146 | let pollingScroll = null |
| 147 | function pollScroll() { |
| 148 | if (document.activeElement != editor.contentDOM) return |
| 149 | let rect = editor.dom.getBoundingClientRect() |
| 150 | if (rect.bottom < 0 || rect.top > innerHeight) editor.contentDOM.blur() |
| 151 | else pollingScroll = setTimeout(pollScroll, 500) |
| 152 | } |
| 153 | let sandbox = node.getAttribute("data-sandbox") |
| 154 | let context = { |
| 155 | wrap: wrap, |
nothing calls this directly
no outgoing calls
no test coverage detected