]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_tinymce.scss
Added a custom link context toolbar
[bookstack] / resources / sass / _tinymce.scss
index ecb258a53f00c1a5b0f51b059af3e52caf1c130c..6add27f453ffbc11d847459b18988f141e46b063 100644 (file)
@@ -21,6 +21,9 @@
 .page-content.mce-content-body doc-root {
   display: block;
 }
+.page-content.mce-content-body code-block {
+  display: block;
+}
 
 // In editor line height override
 .page-content.mce-content-body p {
@@ -38,9 +41,12 @@ body.page-content.mce-content-body  {
 }
 
 // Prevent scroll jumps on codemirror clicks
-.page-content.mce-content-body .CodeMirror {
+.page-content.mce-content-body code-block > * {
   pointer-events: none;
 }
+.page-content.mce-content-body code-block pre {
+  display: none;
+}
 
 // Details/summary editor usability
 .page-content.mce-content-body details summary {
@@ -51,6 +57,8 @@ body.page-content.mce-content-body  {
   margin-left: (2px - $-s);
   margin-right: (2px - $-s);
   margin-bottom: (2px - $-s);
+  margin-top: (2px - $-s);
+  overflow: hidden;
 }
 
 /**