Skip to content

Commit

Permalink
split div with code editor one for read me one for code edits; (hyper…
Browse files Browse the repository at this point in the history
…ledger-archives#2307)

Signed-off-by: awjh-ibm <[email protected]>
awjh-ibm authored and nklincoln committed Oct 10, 2017
1 parent b5e3d92 commit 38c3fe0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<perfect-scrollbar class="readme" *ngIf="editorType === 'readme' && _previewReadmeActive" [innerHTML]="previewContent">
</perfect-scrollbar>

<div class="scrollbar-padding" *ngIf="editorType === 'code' || !_previewReadmeActive">
<div class="scrollbar-padding" *ngIf="editorType === 'code'">
<codemirror id="editor-file_CodeMirror" debounce name="editorCodeMirror" [(ngModel)]="editorContent"
[config]="(editorType === 'readme') ? mdCodeConfig : codeConfig" (debounceFunc)="onCodeChanged()" [delay]="700" width="100%" height="100%" ngDefaultControl>
</codemirror>
</div>

<div class="scrollbar-padding" *ngIf="!_previewReadmeActive && editorType === 'readme'">
<codemirror id="editor-file_CodeMirror" debounce name="editorCodeMirror" [(ngModel)]="editorContent"
[config]="(editorType === 'readme') ? mdCodeConfig : codeConfig" (debounceFunc)="onCodeChanged()" [delay]="700" width="100%" height="100%" ngDefaultControl>
</codemirror>

0 comments on commit 38c3fe0

Please sign in to comment.