17 lines
523 B
TypeScript
17 lines
523 B
TypeScript
import { Component, Input, Output, EventEmitter } from 'ng-metadata/core';
|
|
import { MarkdownSymbol } from './markdown.module';
|
|
import './markdown-toolbar.component.css';
|
|
|
|
|
|
/**
|
|
* Toolbar containing Markdown symbol shortcuts.
|
|
*/
|
|
@Component({
|
|
selector: 'markdown-toolbar',
|
|
templateUrl: require('./markdown-toolbar.component.html'),
|
|
})
|
|
export class MarkdownToolbarComponent {
|
|
|
|
@Input('<') public allowUndo: boolean = true;
|
|
@Output() public insertSymbol: EventEmitter<{symbol: MarkdownSymbol}> = new EventEmitter();
|
|
}
|