diff --git a/src/app/view/admin/admin-tag/admin-tag.module.ts b/src/app/view/admin/admin-tag/admin-tag.module.ts index 9301f15..97c2040 100644 --- a/src/app/view/admin/admin-tag/admin-tag.module.ts +++ b/src/app/view/admin/admin-tag/admin-tag.module.ts @@ -5,7 +5,7 @@ import {AdminTagComponent} from './admin-tag.component'; import {FormsModule} from '@angular/forms'; import {CommonTableModule} from '../components/common-table/common-table.module'; import {EditableTagModule} from '../components/editable-tag/editable-tag.module'; -import {NzButtonModule, NzCardModule, NzIconModule, NzTabsModule} from "ng-zorro-antd"; +import {NzButtonModule, NzCardModule, NzIconModule, NzTabsModule} from 'ng-zorro-antd'; @NgModule({ diff --git a/src/app/view/write/editor-md/editor-md.directive.ts b/src/app/view/write/editor-md/editor-md.directive.ts index 10712fa..3aacff9 100644 --- a/src/app/view/write/editor-md/editor-md.directive.ts +++ b/src/app/view/write/editor-md/editor-md.directive.ts @@ -10,7 +10,7 @@ declare var $: any; export class EditorMdDirective implements AfterViewInit { @Input() editormdConfig: EditorConfig; // 配置选项 - @Output() onEditorChange: EventEmitter = new EventEmitter(); // 发射器 + @Output() editorChange: EventEmitter = new EventEmitter(); // 发射器 editor: any; // editormd编辑器 constructor(@Attribute('id') private id: string) { @@ -19,7 +19,7 @@ export class EditorMdDirective implements AfterViewInit { ngAfterViewInit(): void { this.editor = editormd(this.id, this.editormdConfig); // 创建编辑器 - const out = this.onEditorChange; + const out = this.editorChange; const textarea = $('#' + this.id + ' :first'); // 获取textarea元素 // 当编辑器内容改变时,触发textarea的change事件 diff --git a/src/app/view/write/write.component.html b/src/app/view/write/write.component.html index 148fb06..26f8786 100644 --- a/src/app/view/write/write.component.html +++ b/src/app/view/write/write.component.html @@ -4,7 +4,7 @@ -
+
@@ -22,4 +22,4 @@ - \ No newline at end of file +