|
1 |
| -import { AfterViewInit, Component, ElementRef, forwardRef, Inject, Input } from '@angular/core'; |
| 1 | +import {AfterViewInit, Component, ElementRef, EventEmitter, forwardRef, Inject, Input, Output} from '@angular/core'; |
2 | 2 | import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
3 | 3 | import { EditorLocale, EditorOption } from './models';
|
4 | 4 | import { GlobalEditorOptions } from './global-editor-options';
|
@@ -33,6 +33,18 @@ export class AngularMarkdownEditorComponent implements AfterViewInit {
|
33 | 33 | /** Number of rows for the textarea */
|
34 | 34 | @Input() rows = 10;
|
35 | 35 |
|
| 36 | + /** These do not actually ever emit, since bootstrap-markdown already emits the event. This is simply just for typings **/ |
| 37 | + @Output('onShow') private readonly _onShow: EventEmitter<any> = new EventEmitter<any>(); |
| 38 | + @Output('onPreview') private readonly _onPreview: EventEmitter<any> = new EventEmitter<any>(); |
| 39 | + @Output('onPreviewEnd') private readonly _onPreviewEnd: EventEmitter<any> = new EventEmitter<any>(); |
| 40 | + @Output('onSave') private readonly _onSave: EventEmitter<any> = new EventEmitter<any>(); |
| 41 | + @Output('onBlur') private readonly _onBlur: EventEmitter<any> = new EventEmitter<any>(); |
| 42 | + @Output('onFocus') private readonly _onFocus: EventEmitter<any> = new EventEmitter<any>(); |
| 43 | + @Output('onChange') private readonly _onChange: EventEmitter<any> = new EventEmitter<any>(); |
| 44 | + @Output('onFullscreen') private readonly _onFullscreen: EventEmitter<any> = new EventEmitter<any>(); |
| 45 | + @Output('onFullscreenExit') private readonly _onFullscreenExit: EventEmitter<any> = new EventEmitter<any>(); |
| 46 | + @Output('onSelect') private readonly _onSelect: EventEmitter<any> = new EventEmitter<any>(); |
| 47 | + |
36 | 48 | public value: any | any[];
|
37 | 49 | public onModelChange: Function = () => { };
|
38 | 50 | public onModelTouched: Function = () => { };
|
|
0 commit comments