    const pre = document.createTextNode(textBeforeCursor);
                const post = document.createTextNode(textAfterCursor);
                const caretEle = document.createElement('span');
                caretEle.innerHTML = '&nbsp;';

                mirroredEle.innerHTML = '';
                mirroredEle.append(pre, caretEle, post);

                const rect = caretEle.getBoundingClientRect();
                coordinatesButton.innerHTML = `Coordinates: (${rect.left}, ${rect.top})`;
            })