Skip to content

Commit

Permalink
fix bug by @laiqun
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixm committed Oct 30, 2018
1 parent 42ffe82 commit e464eef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mdeditor/templates/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
</style>

<div class="wmd-wrapper" style="z-index:9999;" id="{{ id }}-wmd-wrapper"><textarea {{ final_attrs|safe }}>{{ value }}</textarea></div>
<div class="wmd-wrapper" id="{{ id }}-wmd-wrapper"><textarea {{ final_attrs|safe }}>{{ value }}</textarea></div>

<script type="text/javascript">
var MarkDownEditor;
Expand All @@ -36,6 +36,7 @@
MarkDownEditor = editormd("{{ id }}-wmd-wrapper", {
width: "{{ config.width }}",
height: {{ config.heigth }},
// 当有多个mdeditor时全屏后其他mdeditor仍然显示解决此问题
onfullscreen : function() {
this.editor.css("border-radius", 0).css("z-index", 120);
},
Expand All @@ -44,7 +45,8 @@
zIndex : 10,
border : "none",
"border-radius" : "5px"
});
})
},
syncScrolling: "single",
path: "{% static '/js/lib/' %}",
// theme
Expand Down

0 comments on commit e464eef

Please sign in to comment.