1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 06:55:28 +02:00

markdown editor preview improvements

This commit is contained in:
Harvey Kandola 2016-06-04 19:19:05 +01:00
parent 7fd72fc422
commit 9fca266423
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ export default Ember.Component.extend({
didInsertElement() {
let height = $(document).height() - $(".document-editor > .toolbar").height() - 130;
$("#markdown-editor").css("height", height);
$("#markdown-editor, #markdown-preview").css("height", height);
this.renderPreview();
let self = this;

View file

@ -9,6 +9,7 @@
width: 100%;
padding: 10px;
background-color: white;
overflow: auto;
}
</style>
@ -20,7 +21,6 @@
</div>
<div class="col-xs-6">
<div id="markdown-preview" class="mousetrap bordered wysiwyg">
{{pagePreview}}
</div>
</div>
</div>