Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
fix: line
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Oct 14, 2020
1 parent d65d93d commit 95a567a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import marked from 'marked';
import { ModalDirective } from 'ngx-bootstrap/modal';
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';
import { AfterViewInit, ViewChild, Component, ElementRef, EventEmitter, forwardRef, Input, Output, ViewEncapsulation } from '@angular/core';
import { isPostArticlePage, isAnnouncementPage, isOptionsPage } from '@app/discriminators/url';
import { isPostArticlePage, isAnnouncementPage } from '@app/discriminators/url';
import * as KEYCODE from '@app/constants/keycode';

const hljs = require('highlight.js');
Expand Down Expand Up @@ -127,7 +127,7 @@ export class SaMarkdownEditorComponent implements AfterViewInit, ControlValueAcc

// 娲惧彂浜嬩欢
@Output() ready: EventEmitter<any> = new EventEmitter();
@Output() change: EventEmitter<any> = new EventEmitter();
@Output() inputChange: EventEmitter<any> = new EventEmitter();

onModelChange: any = () => {};
onModelTouched: any = () => {};
Expand Down Expand Up @@ -194,7 +194,7 @@ export class SaMarkdownEditorComponent implements AfterViewInit, ControlValueAcc
const content = cm.getValue();
if (content !== this.content) {
this.content = content;
this.change.emit({
this.inputChange.emit({
editor: this.editor,
content: this.content
});
Expand Down

0 comments on commit 95a567a

Please sign in to comment.