Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix not being able to use toolbar overlapping code mirror

ulferts8d1ac2dff5ca
diff --git a/app/assets/stylesheets/content/editor/_codemirror.sass b/app/assets/stylesheets/content/editor/_codemirror.sass
index a775d4b8697..6b82d089d97 100644
--- a/app/assets/stylesheets/content/editor/_codemirror.sass
+++ b/app/assets/stylesheets/content/editor/_codemirror.sass
@@ -3,3 +3,8 @@
// when editing code style snippets
.CodeMirror
border: 1px solid #ddd
+
+// ensure a toolbar on top of the code mirror area
+// can still be clicked. The two interfere as both have position: relative
+.CodeMirror-code
+ pointer-events: none