Skip to content

NOW MANAGED ON CODEBERG

Adds the media plugin to TinyMCE to allow insertion of videos.

Abijeetd92efd4edc9e
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