Open Glandos opened 2 years ago
I use the following workaround:
#caret-position-marker {
/* Workaround https://github.com/deshiknaves/caret-pos/issues/33 */
display: inline-block !important;
max-width: 0;
}
We have patched this package using patch-package
and are using the zero width space character \u200b
instead of the pipe |
element.parentNode.insertBefore(mirror, element.nextSibling);
ininitializeHTML
, and I addcolor: red;
to the mirror element. I also remove the low z-index to show it.Then we see that after the
|
element, text mirror has an offset. This is not a real issue here, but if the input is narrower, then the mirror is wrapping, and not the original input. Setting amax-width
for this element seems to work, but I don't want to interfere with existing behavior.