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:
parent
7fd72fc422
commit
9fca266423
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue