]> BookStack Code Mirror - bookstack/commitdiff
Adds the media plugin to TinyMCE to allow insertion of videos.
authorAbijeet <redacted>
Tue, 27 Mar 2018 19:17:38 +0000 (00:47 +0530)
committerAbijeet <redacted>
Sat, 14 Apr 2018 13:00:28 +0000 (18:30 +0530)
Fixes #266

Signed-off-by: Abijeet <redacted>
resources/assets/sass/_pages.scss

index 3749b53210d45f18ce7a92fe89c0ce7e6be2a78a..2de274520f49cf3a18df207c137837275523ae7b 100755 (executable)
 
 .comment-editor .CodeMirror, .comment-editor .CodeMirror-scroll {
   min-height: 175px;
+}
+
+/* FIXME - Ugly hack to modify the media plugin for TinyMCE */
+.mce-floatpanel[aria-label="Insert/edit media"] {
+       .mce-open {
+               display: none;
+       }
+       .mce-tab:last-of-type {
+               display: none;
+       }
 }
\ No newline at end of file