Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { CodemirrorModule } from 'ng2-codemirror';
- @NgModule({
- // ...
- imports: [
- CodemirrorModule
- ],
- // ...
- })
- "styles": [
- "../node_modules/codemirror/lib/codemirror.css",
- "styles.scss"
- ],
- "scripts": [
- "../node_modules/codemirror/lib/codemirror.js"
- ],
- <codemirror
- *ngIf="chaptersService.currentChapter"
- [(ngModel)]="chaptersService.currentChapter.novel"
- [config]="{lineNumbers: true}"
- autofocus
- (keyup)="markAsEdited()"
- #textareaNovel>
- </codemirror>
Add Comment
Please, Sign In to add comment