From: Abijeet Date: Tue, 27 Mar 2018 19:17:38 +0000 (+0530) Subject: Adds the media plugin to TinyMCE to allow insertion of videos. X-Git-Tag: v0.21.0~1^2~14^2~2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/d92efd4edc9ec642c0d5015183c6c56bde3e0fd8?ds=inline;hp=--cc Adds the media plugin to TinyMCE to allow insertion of videos. Fixes #266 Signed-off-by: Abijeet --- d92efd4edc9ec642c0d5015183c6c56bde3e0fd8 diff --git a/resources/assets/sass/_pages.scss b/resources/assets/sass/_pages.scss index 3749b5321..2de274520 100755 --- a/resources/assets/sass/_pages.scss +++ b/resources/assets/sass/_pages.scss @@ -309,4 +309,14 @@ .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