prosemirror.css 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .ProseMirror {
  2. position: relative;
  3. }
  4. .ProseMirror {
  5. word-wrap: break-word;
  6. white-space: pre-wrap;
  7. white-space: break-spaces;
  8. -webkit-font-variant-ligatures: none;
  9. font-variant-ligatures: none;
  10. font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
  11. }
  12. .ProseMirror pre {
  13. white-space: pre-wrap;
  14. }
  15. .ProseMirror li {
  16. position: relative;
  17. }
  18. .ProseMirror-hideselection *::selection { background: transparent; }
  19. .ProseMirror-hideselection *::-moz-selection { background: transparent; }
  20. .ProseMirror-hideselection { caret-color: transparent; }
  21. /* See https://github.com/ProseMirror/prosemirror/issues/1421#issuecomment-1759320191 */
  22. .ProseMirror [draggable][contenteditable=false] { user-select: text }
  23. .ProseMirror-selectednode {
  24. outline: 2px solid #8cf;
  25. }
  26. /* Make sure li selections wrap around markers */
  27. li.ProseMirror-selectednode {
  28. outline: none;
  29. }
  30. li.ProseMirror-selectednode:after {
  31. content: "";
  32. position: absolute;
  33. left: -32px;
  34. right: -2px; top: -2px; bottom: -2px;
  35. border: 2px solid #8cf;
  36. pointer-events: none;
  37. }
  38. /* Protect against generic img rules */
  39. img.ProseMirror-separator {
  40. display: inline !important;
  41. border: none !important;
  42. margin: 0 !important;
  43. }