prosekit
Version:
ProseKit: A toolkit for building rich text editors.
34 lines (32 loc) • 765 B
CSS
/* ../extensions/src/yjs/style.css */
.ProseMirror .ProseMirror-yjs-cursor {
position: absolute;
height: 1em;
border-left: black;
border-left-width: 2px;
border-left-style: solid;
border-color: orange;
word-break: normal;
pointer-events: none;
}
.ProseMirror .ProseMirror-yjs-cursor > div {
position: relative;
top: -1.05em;
padding-right: 2px;
padding-left: 2px;
background-color: rgb(250, 129, 0);
color: white;
font-style: normal;
font-weight: normal;
font-size: 13px;
line-height: normal;
font-family: serif;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ProseMirror > .ProseMirror-yjs-cursor:first-child {
margin-top: 16px;
}
/* src/extensions/yjs/style.css */