UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

2 lines (1 loc) 359 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(t){t.firstChild||t.appendChild(document.createTextNode(""));const o=document.createRange(),e=window.getSelection();o.selectNodeContents(t),o.collapse(!0),e==null||e.removeAllRanges(),e==null||e.addRange(o),t instanceof HTMLElement&&t.focus()}exports.focusNodeStart=a;