2020-09-30 23:12:17 +08:00
|
|
|
const style = `.ProseMirror {
|
2020-03-05 04:45:49 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror {
|
|
|
|
word-wrap: break-word;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
-webkit-font-variant-ligatures: none;
|
|
|
|
font-variant-ligatures: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-gapcursor {
|
|
|
|
display: none;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-gapcursor:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: -2px;
|
|
|
|
width: 20px;
|
|
|
|
border-top: 1px solid black;
|
|
|
|
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes ProseMirror-cursor-blink {
|
|
|
|
to {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-hideselection *::selection {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-hideselection *::-moz-selection {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-hideselection * {
|
|
|
|
caret-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
|
|
display: block;
|
2020-09-30 23:12:17 +08:00
|
|
|
}`
|
|
|
|
|
|
|
|
export default style
|